diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts index ee0a73bf84..825b05c268 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts @@ -1992,10 +1992,11 @@ class BaseModelSqlv2 { const res = []; for (const d of ids) { - if (Object.keys(d).length) { + const data = await this.model.mapAliasToColumn(d); + if (Object.keys(data).length) { const response = await transaction(this.model.table_name) .del() - .where(await this.model.mapAliasToColumn(d)); + .where(data); res.push(response); } }