Skip to content

Commit

Permalink
hotfix: 마지막 답변일 경우, 마감일 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks committed Sep 14, 2024
1 parent 44b2627 commit 7ee57aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public void create(AnswerListCreateRequest request, Long spaceId, Long retrospec

if (!retrospect.hasDeadLine()) {
retrospect.updateRetrospectStatus(RetrospectStatus.DONE);
retrospect.updateDeadLine(time.now());
}
retrospectRepository.saveAndFlush(retrospect);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,8 @@ public boolean hasDeadLine() {

return true;
}

public void updateDeadLine(LocalDateTime deadline){
this.deadline = deadline;
}
}

0 comments on commit 7ee57aa

Please sign in to comment.