This commit is contained in:
Benjamin Toby
2025-03-25 09:33:18 +01:00
parent e3c98388c6
commit 2091c823c8
5 changed files with 5 additions and 3 deletions
+1
View File
@@ -82,6 +82,7 @@ function apiGet(_a) {
(_b = global.ERROR_CALLBACK) === null || _b === void 0 ? void 0 : _b.call(global, `API Get Error`, error);
if (debug && global.DSQL_USE_LOCAL) {
console.log("apiGet:error", error.message);
console.log("queryAndValues", queryAndValues);
}
return {
success: false,
+1 -1
View File
@@ -15,7 +15,7 @@ function apiGetGrabQueryAndValues({ query, values }) {
});
return {
query: typeof query == "string"
? String(query.replace(/\n|\r|\n\r/g, "").replace(/ {2,}/g, " "))
? String(query.replace(/\n|\r|\n\r/g, " ").replace(/ {2,}/g, " "))
: (queryGenObject === null || queryGenObject === void 0 ? void 0 : queryGenObject.string) || "",
values: values || (queryGenObject === null || queryGenObject === void 0 ? void 0 : queryGenObject.values),
valuesString: typeof query == "string"