Browse Source

fix(nocodb): rowId issue after in audit log

pull/6592/head
reenphygeorge 1 year ago
parent
commit
aa596cc0a2
  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> { public async afterDelete(data: any, _trx: any, req): Promise<void> {
const id = req?.params?.id; const id = req?.params.rowId;
await Audit.insert({ await Audit.insert({
fk_model_id: this.model.id, fk_model_id: this.model.id,
row_id: id, row_id: id,

Loading…
Cancel
Save