Skip to main content

Function: listAuditLog()

listAuditLog(companyId, opts?): Promise<AuditRow[]>

Defined in: src/server/services/audit.ts:51

Company-scoped audit log, newest-first. Defaults to the last 30 days and at most 500 rows. from/to filter on created_at (inclusive). Service-role read; the caller must verify the admin and pass the verified companyId.

Parameters

companyId

string

opts?

AuditListOpts

Returns

Promise<AuditRow[]>