Browse Source

fix: record ID for delete

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6592/head
Raju Udava 1 year ago
parent
commit
30b9a6d9d3
  1. 2
      packages/nocodb/src/db/BaseModelSqlv2.ts

2
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -3458,7 +3458,7 @@ class BaseModelSqlv2 {
}
public async afterDelete(data: any, _trx: any, req): Promise<void> {
const id = req?.params.rowId;
const id = this._extractPksValues(data);
await Audit.insert({
fk_model_id: this.model.id,
row_id: id,

Loading…
Cancel
Save