Skip to content

Commit

Permalink
feat: InoculationSimple의 vaccinations를 널러블로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
HyungJu committed May 14, 2024
1 parent 1549b90 commit 9b39bbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class InoculationService(
request: InoculationSimpleRequest,
): List<InoculationSimpleResponse> {
val vaccinations =
if (request.vaccinations.isEmpty()) {
if (request.vaccinations.isNullOrEmpty()) {
vaccinationRepository.findAll().filter {
it.vaccinationType == request.type
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import com.vacgom.backend.inoculation.domain.constants.VaccinationType

data class InoculationSimpleRequest(
val type: VaccinationType,
val vaccinations: List<String>,
val vaccinations: List<String>?,
)

0 comments on commit 9b39bbb

Please sign in to comment.