diff --git a/packages/backend/src/core/UserBlockingService.ts b/packages/backend/src/core/UserBlockingService.ts index 0d51866c232d..b143a1ba4318 100644 --- a/packages/backend/src/core/UserBlockingService.ts +++ b/packages/backend/src/core/UserBlockingService.ts @@ -60,7 +60,10 @@ export class UserBlockingService implements OnModuleInit { } @bindThis - public async block(blocker: MiUser, blockee: MiUser, silent = false): null | 'BLOCKEE_IS_MODERATOR' { + public async block(blocker: MiUser, blockee: MiUser, silent = false): Promise< + | null + | 'BLOCKEE_IS_MODERATOR' + > { if (await this.roleService.isModerator(blockee)) return 'BLOCKEE_IS_MODERATOR'; await Promise.all([ this.cancelRequest(blocker, blockee, silent),