diff --git a/packages/backend/src/daemons/QueueStatsService.ts b/packages/backend/src/daemons/QueueStatsService.ts index 9d2266e7e7..767e80bc81 100644 --- a/packages/backend/src/daemons/QueueStatsService.ts +++ b/packages/backend/src/daemons/QueueStatsService.ts @@ -138,7 +138,7 @@ export class QueueStatsService implements OnApplicationShutdown { } @bindThis - public async stop(): void { + public async stop(): Promise { if (this.intervalId) { this.timeService.stopTimer(this.intervalId); } @@ -159,11 +159,6 @@ export class QueueStatsService implements OnApplicationShutdown { this.activeBackgroundJobs = 0; } - @bindThis - public async dispose(): void { - await this.stop(); - } - @bindThis public async dispose() { await this.stop();