This commit is contained in:
Tulupov
2024-01-28 20:03:05 +03:00
parent 8ecef2ee50
commit 9cdf05db79

View File

@@ -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;