This commit is contained in:
Benjamin Toby
2025-02-19 20:01:50 +01:00
parent c08db13f3d
commit e9bb9fb07f
113 changed files with 253 additions and 63 deletions
+3 -3
View File
@@ -29,6 +29,7 @@ query,
*/
values) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b;
try {
if (!conn)
throw new Error("No Connection Found!");
@@ -47,7 +48,7 @@ values) {
resArray.push(JSON.parse(JSON.stringify(queryObjRes)));
}
catch (error) {
console.log(`connDbHandler Query Error: ${error.message}`);
(_a = global.ERROR_CALLBACK) === null || _a === void 0 ? void 0 : _a.call(global, `Connection DB Handler Query Error`, error);
resArray.push(null);
}
}
@@ -58,8 +59,7 @@ values) {
}
}
catch (error) {
console.log(`connDbHandler Error: ${error.message}`);
console.log(conn === null || conn === void 0 ? void 0 : conn.config());
(_b = global.ERROR_CALLBACK) === null || _b === void 0 ? void 0 : _b.call(global, `Connection DB Handler Error`, error);
return null;
}
finally {