Updates
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user