From 71be39ecc878201e306365876ee059399418169d Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sun, 2 Feb 2025 00:27:03 -0500 Subject: [PATCH] add missing `await` in ApLogCleanupService --- packages/backend/src/daemons/ApLogCleanupService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/daemons/ApLogCleanupService.ts b/packages/backend/src/daemons/ApLogCleanupService.ts index 2b6693e19e..61f76b4e2c 100644 --- a/packages/backend/src/daemons/ApLogCleanupService.ts +++ b/packages/backend/src/daemons/ApLogCleanupService.ts @@ -40,7 +40,7 @@ export class ApLogCleanupService implements OnApplicationShutdown { @bindThis private async tick(): Promise { try { - const affected = this.apLogService.deleteExpiredLogs(); + const affected = await this.apLogService.deleteExpiredLogs(); this.logger.info(`Activity Log cleanup complete; removed ${affected} expired logs.`); } catch (err) { this.logger.error('Activity Log cleanup failed:', err as Error);