add missing bindThis() to OnModuleInit / OnApplicationShutdown handlers
This commit is contained in:
parent
92466ed569
commit
7c8d09f1c9
9 changed files with 9 additions and 0 deletions
|
|
@ -159,6 +159,7 @@ export class RoleService implements OnApplicationShutdown, OnModuleInit {
|
|||
this.redisForSub.on('message', this.onMessage);
|
||||
}
|
||||
|
||||
@bindThis
|
||||
async onModuleInit() {
|
||||
this.notificationService = this.moduleRef.get(NotificationService.name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue