This commit is contained in:
2026-01-04 12:41:19 +01:00
parent def2f2f057
commit 18e29fa413
8 changed files with 39 additions and 9 deletions
+10 -1
View File
@@ -24,6 +24,7 @@ export default async function dsqlCrud<
sanitize,
targetField,
targetId,
targetIds,
dbFullName,
deleteData,
batchData,
@@ -100,7 +101,15 @@ export default async function dsqlCrud<
case "delete":
let res: PostInsertReturn;
if (whereClauseObject) {
if (targetIds) {
const DELETE_RES = await deleteDbEntry({
tableName: table,
dbFullName,
targetIds,
});
return DELETE_RES;
} else if (whereClauseObject) {
const DELETE_RES = await deleteDbEntry({
whereClauseObject,
tableName: table,