Skip to content

Commit

Permalink
[BE] REFACTOR: isBlackholed 함수 이름 명확히 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
enaenen committed Aug 15, 2023
1 parent 8fde2a1 commit 52c0c55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public Boolean isBlackholedAndUpdateBlackhole(UserBlackholeInfoDto userBlackhole
LocalDateTime now = LocalDateTime.now();
JsonNode blackholeInfo = getBlackholeInfo(userBlackholeInfoDto);
LocalDateTime blackholedAtDate = parseBlackholedAt(blackholeInfo);
userService.updateUserBlackholedAt(userBlackholeInfoDto.getUserId(), blackholedAtDate);
if (blackholedAtDate == null || blackholedAtDate.isAfter(now)) {
userService.updateUserBlackholedAt(userBlackholeInfoDto.getUserId(), blackholedAtDate);
return false;
} else {
return true;
Expand Down

0 comments on commit 52c0c55

Please sign in to comment.