We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 375dedd commit c122bdcCopy full SHA for c122bdc
src/main/java/JavaProject/Dayoung/domain/quiz/repository/QuizRepositoryImpl.java
@@ -77,12 +77,12 @@ public List<Quiz> queryAllForMostSolved() {
77
}
78
79
private BooleanExpression containsTitle(String title) {
80
- return title == null ? null : quiz.title.contains(title);
+ return title == null || title.isEmpty() ? null : quiz.title.contains(title);
81
82
83
private BooleanExpression containsArea(List<Area> areas) {
84
//return areas == null ? null : quiz.area.in(areas);
85
- return areas == null ? null : quiz.area.contains((Area) areas);
+ return areas == null || areas.isEmpty() ? null : quiz.area.contains((Area) areas);
86
87
88
private BooleanExpression containsLevel(List<Level> levels) {
0 commit comments