Skip to content

Commit

Permalink
RAC-436 fix : 재가입 가능 15일과 완전 탈퇴 30일 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
ywj9811 committed Oct 2, 2024
1 parent c501d2f commit 6d68bfe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ public boolean isDefaultProfile(List<String> defaultProfile) {
}

public boolean isRealDelete() {
return (
this.isDelete
&&
this.updatedAt.isBefore(
now().minusDays(15)
.atStartOfDay()
)
);
}

public boolean isHardDelete() {
return (
this.isDelete
&&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class QuitManageUseCase {
public void updateRealDelete() {
userGetService.byDelete()
.stream()
.filter(User::isRealDelete)
.filter(User::isHardDelete)
.forEach(
user -> {
if (user.isSenior()) {
Expand Down

0 comments on commit 6d68bfe

Please sign in to comment.