Skip to content

Commit cc1e4f2

Browse files
committed
[hotfix] 문항 유효성검사 조건 수정
1 parent 4f2ab0c commit cc1e4f2

File tree

1 file changed

+3
-2
lines changed
  • src/main/java/com/moplus/moplus_server/domain/problem/domain/problem

1 file changed

+3
-2
lines changed

src/main/java/com/moplus/moplus_server/domain/problem/domain/problem/Problem.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ public boolean isValid() {
169169
&& title != null && !title.getTitle().isEmpty()
170170
&& answer != null && !answer.getValue().isEmpty()
171171
&& difficulty != null && difficulty.getDifficulty() != null
172-
&& memo != null && !memo.isEmpty()
173172
&& mainProblemImageUrl != null && !mainProblemImageUrl.isEmpty()
174173
&& mainAnalysisImageUrl != null && !mainAnalysisImageUrl.isEmpty()
175174
&& mainHandwritingExplanationImageUrl != null && !mainHandwritingExplanationImageUrl.isEmpty()
@@ -179,7 +178,9 @@ public boolean isValid() {
179178
&& prescriptionImageUrls.stream().allMatch(url -> url != null && !url.isEmpty())
180179
&& answerType != null
181180
&& conceptTagIds != null && !conceptTagIds.isEmpty()
182-
&& recommendedTime != null;
181+
&& recommendedTime != null
182+
&& recommendedTime.getMinute() != null && recommendedTime.getMinute() >= 0
183+
&& recommendedTime.getSecond() != null && recommendedTime.getSecond() >= 0;
183184
}
184185

185186
public String getTitle() {

0 commit comments

Comments
 (0)