-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from YAPP-Github/fix/PC-440-confict-fix
[PC-440] 머지 뒤 생긴 에러들 수정
- Loading branch information
Showing
14 changed files
with
223 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
api/src/main/java/org/yapp/domain/match/application/blocker/AcquaintanceBasedBlocker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
package org.yapp.domain.match.application.blocker; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Component; | ||
import org.yapp.domain.block.application.BlockService; | ||
import org.yapp.domain.block.application.BlockContactService; | ||
import org.yapp.domain.user.User; | ||
import org.yapp.domain.user.application.UserService; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
|
||
@Component | ||
@RequiredArgsConstructor | ||
public class AcquaintanceBasedBlocker implements Blocker { | ||
private final BlockService blockService; | ||
|
||
private final BlockContactService blockContactService; | ||
private final UserService userService; | ||
|
||
@Override | ||
public boolean blocked(Long blockingUserId, Long blockedUserId) { | ||
User user = userService.getUserById(blockingUserId); | ||
return blockService.checkIfUserBlockedPhoneNumber(blockedUserId, user.getPhoneNumber()); | ||
return blockContactService.checkIfUserBlockedPhoneNumber(blockedUserId, user.getPhoneNumber()); | ||
} | ||
} |
Oops, something went wrong.