Browse Source

fix: change conditions

pull/4632/head
诗人的咸鱼 2 years ago
parent
commit
04ef1b8e71
  1. 5
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

5
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);
}
}

Loading…
Cancel
Save