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 Original file line number Diff line number Diff line change @@ -169,7 +169,6 @@ public boolean isValid() {
169
169
&& title != null && !title .getTitle ().isEmpty ()
170
170
&& answer != null && !answer .getValue ().isEmpty ()
171
171
&& difficulty != null && difficulty .getDifficulty () != null
172
- && memo != null && !memo .isEmpty ()
173
172
&& mainProblemImageUrl != null && !mainProblemImageUrl .isEmpty ()
174
173
&& mainAnalysisImageUrl != null && !mainAnalysisImageUrl .isEmpty ()
175
174
&& mainHandwritingExplanationImageUrl != null && !mainHandwritingExplanationImageUrl .isEmpty ()
@@ -179,7 +178,9 @@ public boolean isValid() {
179
178
&& prescriptionImageUrls .stream ().allMatch (url -> url != null && !url .isEmpty ())
180
179
&& answerType != null
181
180
&& conceptTagIds != null && !conceptTagIds .isEmpty ()
182
- && recommendedTime != null ;
181
+ && recommendedTime != null
182
+ && recommendedTime .getMinute () != null && recommendedTime .getMinute () >= 0
183
+ && recommendedTime .getSecond () != null && recommendedTime .getSecond () >= 0 ;
183
184
}
184
185
185
186
public String getTitle () {
You can’t perform that action at this time.
0 commit comments