add missing bindThis to several onApplicationShutdown hooks

This commit is contained in:
Hazelnoot 2025-09-27 19:58:43 -04:00
parent ac9b787796
commit 83adb5e887
3 changed files with 3 additions and 0 deletions

View file

@ -198,6 +198,7 @@ export class GlobalModule implements OnApplicationShutdown {
this.logger.info('Global module disposed.');
}
@bindThis
async onApplicationShutdown(signal: string): Promise<void> {
await this.dispose();
}

View file

@ -157,6 +157,7 @@ export class QueueModule implements OnApplicationShutdown {
this.logger.info('Queue module disposed.');
}
@bindThis
async onApplicationShutdown(signal: string): Promise<void> {
await this.dispose();
}

View file

@ -142,6 +142,7 @@ export class ApPersonService implements OnModuleInit, OnApplicationShutdown {
this.logger = this.apLoggerService.logger;
}
@bindThis
onApplicationShutdown(): void {
this.dispose();
}