Skip to content

Commit c928924

Browse files
committed
fix: 관리자 대여 기록 검색이 작동하지 않던 현상 수정 2
1 parent 56ba7f1 commit c928924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/site/billilge/api/backend/domain/rental/service/RentalService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class RentalService(
180180

181181
fun getAllDashboardApplications(rentalStatus: RentalStatus?): DashboardResponse {
182182
val rentalApplicationDetails = rentalRepository.findAllByRentalStatusIn(DASHBOARD_STATUS)
183-
.filter { it.rentalStatus == rentalStatus }
183+
.filter { if (rentalStatus == null) true else it.rentalStatus == rentalStatus }
184184
.map { DashboardResponse.RentalApplicationDetail.from(it) }
185185

186186
return DashboardResponse(rentalApplicationDetails)

0 commit comments

Comments
 (0)