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

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