fonction de recherche par username

This commit is contained in:
batche
2022-11-21 13:02:26 +01:00
parent 5efea64ca1
commit 2d031104f1

View File

@@ -64,6 +64,7 @@ export class UsersService {
.leftJoinAndSelect('user.stats', 'stats')
.where('user.username = :username', { username: username })
.getOne();
console.log('USERNAME OF FOUND USER : ' + user.username);
if (!user)
throw new HttpException(`The user could not be found.`,HttpStatus.NOT_FOUND);
if (this.friendshipService.findIfUserIsBlockedOrHasBlocked(userConnectedId, user.id.toString()))