corrections mineures
This commit is contained in:
@@ -48,7 +48,6 @@ export class FriendshipService {
|
||||
return await this.friendshipRepository
|
||||
.createQueryBuilder('friendship')
|
||||
.where('friendship.requesterUsername = :requestee', { requestee: username })
|
||||
.orWhere('friendship.addresseeUsername = :addressee', { addressee: username })
|
||||
.andWhere('friendship.status = :status', { status: FriendshipStatus.BLOCKED })
|
||||
.getMany();
|
||||
}
|
||||
@@ -70,7 +69,7 @@ export class FriendshipService {
|
||||
}
|
||||
//GROS CHANTIER
|
||||
async create(createFriendshipDto: CreateFriendshipDto, creator : User) {
|
||||
const addressee = await this.userRepository.findOneBy({ id: +createFriendshipDto.addresseeUsername });
|
||||
const addressee = await ;
|
||||
if (!addressee)
|
||||
throw new HttpException(`The addressee does not exist.`, HttpStatus.NOT_FOUND);
|
||||
if (creator.id === addressee.id)
|
||||
|
||||
Reference in New Issue
Block a user