add missing await in ApLogCleanupService

This commit is contained in:
Hazelnoot 2025-02-02 00:27:03 -05:00
parent 4858276465
commit 71be39ecc8

View file

@ -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);