From 2c04d67035cf313f9171c10a6cea90f434b68f96 Mon Sep 17 00:00:00 2001 From: sszafGCA <116172610+sszafGCA@users.noreply.github.com> Date: Wed, 11 Oct 2023 21:13:43 +0200 Subject: [PATCH] Remove not needed check Co-authored-by: Sergej Hoffmann <97111299+SevenWaysDP@users.noreply.github.com> --- apps/server/src/modules/user/service/user.service.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/server/src/modules/user/service/user.service.ts b/apps/server/src/modules/user/service/user.service.ts index d62e5ea0346..2c423ffd7db 100644 --- a/apps/server/src/modules/user/service/user.service.ts +++ b/apps/server/src/modules/user/service/user.service.ts @@ -109,9 +109,6 @@ export class UserService { } async deleteUser(userId: EntityId): Promise { - if (!userId) { - throw new InternalServerErrorException('User id is missing'); - } const deletedUserNumber: Promise = this.userRepo.deleteUser(userId);