More bugfixes

This commit is contained in:
Owen
2025-10-29 17:21:32 -07:00
parent 6dc4cbe448
commit 0e649883cb
6 changed files with 15 additions and 12 deletions

View File

@@ -52,7 +52,7 @@ export async function cleanUpOldLogs(orgId: string, retentionDays: number) {
const cutoffTimestamp = now - retentionDays * 24 * 60 * 60;
try {
const deleteResult = await db
await db
.delete(accessAuditLog)
.where(
and(
@@ -62,7 +62,7 @@ export async function cleanUpOldLogs(orgId: string, retentionDays: number) {
);
logger.debug(
`Cleaned up ${deleteResult.changes} access audit logs older than ${retentionDays} days`
`Cleaned up access audit logs older than ${retentionDays} days`
);
} catch (error) {
logger.error("Error cleaning up old action audit logs:", error);