From 9cdf05db79231f34bd1bdf74bd09e9b8f23e406a Mon Sep 17 00:00:00 2001 From: Tulupov Date: Sun, 28 Jan 2024 20:03:05 +0300 Subject: [PATCH] 404 --- backend/src/modules/user/user.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/modules/user/user.service.ts b/backend/src/modules/user/user.service.ts index 8471d66..2c2ad57 100644 --- a/backend/src/modules/user/user.service.ts +++ b/backend/src/modules/user/user.service.ts @@ -50,7 +50,7 @@ export class UserService { where: { id: id }, }); if (!user){ - throw new HttpException('No user with this id', HttpStatus.BAD_REQUEST); + throw new HttpException('No user with this id', 404); } user = await this.userRepository.save({ id: id, banned: false }); return user;