diff --git a/packages/nocodb/src/lib/models/Audit.ts b/packages/nocodb/src/lib/models/Audit.ts index 4a4a7a4980..f8e2e84bb9 100644 --- a/packages/nocodb/src/lib/models/Audit.ts +++ b/packages/nocodb/src/lib/models/Audit.ts @@ -157,6 +157,7 @@ export default class Audit implements AuditType { offset, }); } + static async projectAuditCount(projectId: string): Promise { return ( await Noco.ncMeta @@ -172,4 +173,19 @@ export default class Audit implements AuditType { fk_model_id, }); } + + static async commentUpdate( + auditId: string, + audit: Partial, + ncMeta = Noco.ncMeta + ) { + const updateObj = extractProps(audit, ['description']); + return await ncMeta.metaUpdate( + null, + null, + MetaTable.AUDIT, + updateObj, + auditId + ); + } }