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
|
|
@ -48,6 +48,7 @@ export class ReversiService implements OnApplicationShutdown, OnModuleInit {
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
async onModuleInit() {
|
async onModuleInit() {
|
||||||
this.notificationService = this.moduleRef.get(NotificationService.name);
|
this.notificationService = this.moduleRef.get(NotificationService.name);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,7 @@ export class RoleService implements OnApplicationShutdown, OnModuleInit {
|
||||||
this.redisForSub.on('message', this.onMessage);
|
this.redisForSub.on('message', this.onMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
async onModuleInit() {
|
async onModuleInit() {
|
||||||
this.notificationService = this.moduleRef.get(NotificationService.name);
|
this.notificationService = this.moduleRef.get(NotificationService.name);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ export class UserBlockingService implements OnModuleInit {
|
||||||
this.logger = this.loggerService.getLogger('user-block');
|
this.logger = this.loggerService.getLogger('user-block');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
onModuleInit() {
|
onModuleInit() {
|
||||||
this.userFollowingService = this.moduleRef.get('UserFollowingService');
|
this.userFollowingService = this.moduleRef.get('UserFollowingService');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,7 @@ export class UserFollowingService implements OnModuleInit {
|
||||||
this.logger = loggerService.getLogger('following/create');
|
this.logger = loggerService.getLogger('following/create');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
onModuleInit() {
|
onModuleInit() {
|
||||||
this.userBlockingService = this.moduleRef.get('UserBlockingService');
|
this.userBlockingService = this.moduleRef.get('UserBlockingService');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -120,6 +120,7 @@ export class ApPersonService implements OnModuleInit, OnApplicationShutdown {
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
onModuleInit(): void {
|
onModuleInit(): void {
|
||||||
this.utilityService = this.moduleRef.get('UtilityService');
|
this.utilityService = this.moduleRef.get('UtilityService');
|
||||||
this.userEntityService = this.moduleRef.get('UserEntityService');
|
this.userEntityService = this.moduleRef.get('UserEntityService');
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@ export class NoteEntityService implements OnModuleInit {
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
onModuleInit() {
|
onModuleInit() {
|
||||||
this.userEntityService = this.moduleRef.get('UserEntityService');
|
this.userEntityService = this.moduleRef.get('UserEntityService');
|
||||||
this.driveFileEntityService = this.moduleRef.get('DriveFileEntityService');
|
this.driveFileEntityService = this.moduleRef.get('DriveFileEntityService');
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ export class NoteReactionEntityService implements OnModuleInit {
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
onModuleInit() {
|
onModuleInit() {
|
||||||
this.userEntityService = this.moduleRef.get('UserEntityService');
|
this.userEntityService = this.moduleRef.get('UserEntityService');
|
||||||
this.noteEntityService = this.moduleRef.get('NoteEntityService');
|
this.noteEntityService = this.moduleRef.get('NoteEntityService');
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ export class NotificationEntityService implements OnModuleInit {
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
onModuleInit() {
|
onModuleInit() {
|
||||||
this.userEntityService = this.moduleRef.get('UserEntityService');
|
this.userEntityService = this.moduleRef.get('UserEntityService');
|
||||||
this.noteEntityService = this.moduleRef.get('NoteEntityService');
|
this.noteEntityService = this.moduleRef.get('NoteEntityService');
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,7 @@ export class UserEntityService implements OnModuleInit {
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
onModuleInit() {
|
onModuleInit() {
|
||||||
this.apPersonService = this.moduleRef.get('ApPersonService');
|
this.apPersonService = this.moduleRef.get('ApPersonService');
|
||||||
this.noteEntityService = this.moduleRef.get('NoteEntityService');
|
this.noteEntityService = this.moduleRef.get('NoteEntityService');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue