Skip to content

Commit

Permalink
fix: enum을 찾을때 uppercase로 찾도록 수정한다
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Mar 7, 2024
1 parent 78c517a commit 30763d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class GalleryService(
fun getGalleries(job: String, pageable: Pageable): Page<Gallery> {
val jobs = when (job.uppercase()) {
"ALL" -> Job.entries.toList()
else -> listOf(Job.valueOf(job))
else -> listOf(Job.valueOf(job.uppercase()))
}

return galleryRepository.findGalleries(jobs, pageable)
Expand Down

0 comments on commit 30763d5

Please sign in to comment.