add missing bindThis to several onApplicationShutdown hooks
This commit is contained in:
parent
ac9b787796
commit
83adb5e887
3 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -142,6 +142,7 @@ export class ApPersonService implements OnModuleInit, OnApplicationShutdown {
|
|||
this.logger = this.apLoggerService.logger;
|
||||
}
|
||||
|
||||
@bindThis
|
||||
onApplicationShutdown(): void {
|
||||
this.dispose();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue