Skip to content

Commit

Permalink
[#163] fix: StackName 조건문 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dl-00-e8 committed Jul 14, 2024
1 parent 5f9854f commit 5cbc618
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ public Page<GetContestRes> getContestsByFilter(String sort, String meetingCity,
@Transactional(readOnly = true)
public Page<GetProjectRes> getProjectsByFilter(String sort, String meetingCity, String meetingTown, String stackName, String searchWord, Pageable page) {
// Validation
System.out.println("TEST");
if(stackName != null && (stackName.isBlank() || StackNameType.isValid(stackName))) {
if(stackName != null && !stackName.isBlank() && !StackNameType.isValid(stackName)) {
throw new ApplicationException(INVALID_VALUE_EXCEPTION);
}

Expand Down

0 comments on commit 5cbc618

Please sign in to comment.