This commit is contained in:
2026-05-23 16:40:20 +01:00
parent 47f85d8343
commit bcdd1f4b7e
11 changed files with 35 additions and 14 deletions
+1
View File
@@ -21,6 +21,7 @@ export default async function DbDelete({ table, query, targetId, }) {
const whereClause = sqlObj.string.match(/WHERE .*/)?.[0];
if (whereClause) {
let sql = `DELETE FROM ${table} ${whereClause}`;
sqlObj.string = sql;
const res = DbClient.run(sql, sqlObj.values);
return {
success: Boolean(res.changes),