This commit is contained in:
Benjamin Toby
2025-01-14 14:19:50 +01:00
parent 0731e8cb6c
commit 20754d5cae
23 changed files with 382 additions and 74 deletions
-2
View File
@@ -59,7 +59,6 @@ function get(_a) {
* @description make a request to datasquirel.com
*/
const httpResponse = yield new Promise((resolve, reject) => {
/** @type {import("../package-shared/types").GetReqQueryObject} */
const queryObject = {
db: process.env.DSQL_API_DB_NAME || String(db),
query: String(query.replace(/\n|\r|\n\r/g, "").replace(/ {2,}/g, " ")),
@@ -70,7 +69,6 @@ function get(_a) {
};
const queryString = (0, serialize_query_1.default)(Object.assign({}, queryObject));
let path = `/api/query/${user_id || grabedHostNames.user_id}/get${queryString}`;
/** @type {https.RequestOptions} */
const requestObject = {
method: "GET",
headers: {