This commit is contained in:
2026-03-08 14:23:50 +01:00
parent b583fefe89
commit 835458cc14
3 changed files with 13 additions and 5 deletions
+6 -2
View File
@@ -21,6 +21,7 @@ function DbSelect(_a) {
return __awaiter(this, arguments, void 0, function* ({ table, query, count, targetId, }) {
var _b;
let sql;
let sqlObj;
try {
let finalQuery = query || {};
if (targetId) {
@@ -32,7 +33,7 @@ function DbSelect(_a) {
},
});
}
const sqlObj = (0, sql_generator_1.default)({
sqlObj = (0, sql_generator_1.default)({
tableName: table,
genObject: finalQuery,
count,
@@ -60,7 +61,10 @@ function DbSelect(_a) {
return {
success: false,
error: error.message,
debug: { sql },
debug: {
sql,
sqlObj,
},
};
}
});