From 2505177ae53d53bf37d77e6dc10d4e4455472eea Mon Sep 17 00:00:00 2001 From: FineArchs <133759614+FineArchs@users.noreply.github.com> Date: Thu, 28 Nov 2024 08:24:04 +0900 Subject: [PATCH] lint fix UserBlockingService.ts --- packages/backend/src/core/UserBlockingService.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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),