Skip to content

Commit

Permalink
lint fix UserBlockingService.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
FineArchs authored Nov 27, 2024
1 parent fc8ad3d commit 2505177
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/backend/src/core/UserBlockingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2505177

Please sign in to comment.