From e86408ee09db1db9ef12b6662106b87a6c3ebbab Mon Sep 17 00:00:00 2001 From: Mingyu Song <100754581+mikekks@users.noreply.github.com> Date: Fri, 13 Sep 2024 23:59:19 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=B4=EB=AF=B8=20=EB=A7=88=EA=B0=90?= =?UTF-8?q?=EB=90=98=EC=97=88=EC=9D=84=20=EA=B2=BD=EC=9A=B0=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20(#243)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../layer/domain/retrospect/service/RetrospectService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layer-api/src/main/java/org/layer/domain/retrospect/service/RetrospectService.java b/layer-api/src/main/java/org/layer/domain/retrospect/service/RetrospectService.java index d1c6ed1e..825943f4 100644 --- a/layer-api/src/main/java/org/layer/domain/retrospect/service/RetrospectService.java +++ b/layer-api/src/main/java/org/layer/domain/retrospect/service/RetrospectService.java @@ -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);