Skip to content

Commit

Permalink
feat : detail 정렬 기준 오름차순 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackBean99 committed Jul 20, 2023
1 parent 2577294 commit f361dbc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class PromiseReadUseCase(
promise = promise,
users = participants,
)
}.sortedByDescending { it.endTime }
}.sortedBy { it.endTime }
}

fun findPromiseDetailByStatus(promiseType: PromiseType): List<PromiseDetailDto> {
Expand Down Expand Up @@ -144,7 +144,7 @@ class PromiseReadUseCase(
)
}

return result.sortedByDescending { it.endTime }
return result.sortedBy { it.endTime }
}

fun findPromiseActive(promiseId: Long): Boolean {
Expand All @@ -162,7 +162,7 @@ class PromiseReadUseCase(

private fun findPromisesByUserId(userId: Long): List<Promise> {
val promiseUsers = promiseUserAdaptor.findByUserId(userId)
return promiseUsers.map { promiseAdaptor.queryPromise(it.promiseId) }.sortedByDescending { it.endTime }
return promiseUsers.map { promiseAdaptor.queryPromise(it.promiseId) }
}

fun findByPromiseId(promiseId: Long): PromiseFindDto {
Expand Down

0 comments on commit f361dbc

Please sign in to comment.