mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-14 20:49:42 +03:00
404
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user