From 99912a4a34fce324d934b1311bc2c1a164bd65b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20Sch=C3=BCrz?= Date: Wed, 21 Aug 2024 21:13:12 +0200 Subject: [PATCH] Disable discord user service for deactivated users --- src/services/discordUserService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/discordUserService.ts b/src/services/discordUserService.ts index 4238a1a..905d20c 100644 --- a/src/services/discordUserService.ts +++ b/src/services/discordUserService.ts @@ -8,7 +8,7 @@ export class DiscordUserService { static async findById(id: string) { - return this.repository.findOneBy({id}) + return this.repository.findOneBy({ id, deactivated: false }) } static async findOrCreate(user: User) {