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 56ba7f1 commit c928924Copy full SHA for c928924
src/main/kotlin/site/billilge/api/backend/domain/rental/service/RentalService.kt
@@ -180,7 +180,7 @@ class RentalService(
180
181
fun getAllDashboardApplications(rentalStatus: RentalStatus?): DashboardResponse {
182
val rentalApplicationDetails = rentalRepository.findAllByRentalStatusIn(DASHBOARD_STATUS)
183
- .filter { it.rentalStatus == rentalStatus }
+ .filter { if (rentalStatus == null) true else it.rentalStatus == rentalStatus }
184
.map { DashboardResponse.RentalApplicationDetail.from(it) }
185
186
return DashboardResponse(rentalApplicationDetails)
0 commit comments