diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-02-02 00:27:03 -0500 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-02-16 19:25:24 -0500 |
| commit | 71be39ecc878201e306365876ee059399418169d (patch) | |
| tree | 25400e4d685a046c916ca41053bba9a371a00231 /packages/backend/src/daemons/ApLogCleanupService.ts | |
| parent | don't log slow activities, as this is known to happen under regular circumsta... (diff) | |
| download | sharkey-71be39ecc878201e306365876ee059399418169d.tar.gz sharkey-71be39ecc878201e306365876ee059399418169d.tar.bz2 sharkey-71be39ecc878201e306365876ee059399418169d.zip | |
add missing `await` in ApLogCleanupService
Diffstat (limited to 'packages/backend/src/daemons/ApLogCleanupService.ts')
| -rw-r--r-- | packages/backend/src/daemons/ApLogCleanupService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<void> { 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); |