add missing bindThis() to OnModuleInit / OnApplicationShutdown handlers

This commit is contained in:
Hazelnoot 2025-09-30 22:03:24 -04:00
parent 92466ed569
commit 7c8d09f1c9
9 changed files with 9 additions and 0 deletions

View file

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