Skip to content

Commit

Permalink
[BE] fix: 유저 차단 해제 버그를 수정한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
lsh23 committed Jan 3, 2024
1 parent a6ba1a3 commit feb018c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BE/src/users/application/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export class UsersService {
userCode,
);
if (!userBlockedUser) throw new InvalidAllowRequestException();
await this.userBlockedUserRepository.repository.delete(userBlockedUser);
await this.userBlockedUserRepository.deleteByUserIdAndBlockedUserId(
user.id,
blockedUser.id,
);
return AllowUserResponse.from(userBlockedUser);
}

Expand Down

0 comments on commit feb018c

Please sign in to comment.