Browse Source

feat(nocodb): add commentUpdate

pull/5341/head
Wing-Kam Wong 2 years ago
parent
commit
17189aba95
  1. 16
      packages/nocodb/src/lib/models/Audit.ts

16
packages/nocodb/src/lib/models/Audit.ts

@ -157,6 +157,7 @@ export default class Audit implements AuditType {
offset,
});
}
static async projectAuditCount(projectId: string): Promise<number> {
return (
await Noco.ncMeta
@ -172,4 +173,19 @@ export default class Audit implements AuditType {
fk_model_id,
});
}
static async commentUpdate(
auditId: string,
audit: Partial<AuditType>,
ncMeta = Noco.ncMeta
) {
const updateObj = extractProps(audit, ['description']);
return await ncMeta.metaUpdate(
null,
null,
MetaTable.AUDIT,
updateObj,
auditId
);
}
}

Loading…
Cancel
Save