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;