mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-15 04:59:42 +03:00
404
This commit is contained in:
@@ -50,7 +50,7 @@ export class UserService {
|
|||||||
where: { id: id },
|
where: { id: id },
|
||||||
});
|
});
|
||||||
if (!user){
|
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 });
|
user = await this.userRepository.save({ id: id, banned: false });
|
||||||
return user;
|
return user;
|
||||||
|
|||||||
Reference in New Issue
Block a user