Skip to content

Commit 7c4d669

Browse files
authored
fix: 회고답변이 없이 마감하더라도 분석완료 상태가 된다. (#418)
1 parent 5b7012a commit 7c4d669

File tree

1 file changed

+1
-5
lines changed
  • layer-domain/src/main/java/org/layer/domain/answer/entity

1 file changed

+1
-5
lines changed

layer-domain/src/main/java/org/layer/domain/answer/entity/Answers.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,7 @@ public int getGoalCompletionRate(Long questionId) {
138138
}
139139
}
140140

141-
if (count == ZERO) {
142-
throw new AnswerException(NOT_CONTAIN_ANSWERS);
143-
}
144-
145-
return sum / count;
141+
return count == ZERO ? 0 : sum / count;
146142
}
147143

148144
public int getScoreCount(Long questionId, int score, Long memberId) {

0 commit comments

Comments
 (0)