Skip to content

Commit

Permalink
fix: 이미 마감되었을 경우 변경되지 않도록 수정 (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks authored Sep 13, 2024
1 parent 3fd6ce0 commit e86408e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ public void closeRetrospect(Long spaceId, Long retrospectId, Long memberId) {
Retrospect retrospect = retrospectRepository.findByIdOrThrow(retrospectId);

retrospect.updateRetrospectStatus(RetrospectStatus.DONE);
if (retrospect.getAnalysisStatus().equals(AnalysisStatus.DONE)) { // 이미 분석은 완료했지만, 마감되지 않은 경우
return;
}

retrospect.updateAnalysisStatus(AnalysisStatus.PROCEEDING);
retrospectRepository.saveAndFlush(retrospect);

Expand Down

0 comments on commit e86408e

Please sign in to comment.