Skip to content

Commit

Permalink
feat: order in page request in uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiinaKin committed Sep 24, 2024
1 parent e3a127c commit 1eb84f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface PaginationDao {

pageRequest.orderBy?.let {
val column = getColumnByName(table, it)
val sortOrder = SortOrder.valueOf(pageRequest.order ?: "DESC")
val sortOrder = SortOrder.valueOf(pageRequest.order?.uppercase() ?: "DESC")
query.orderBy(column, sortOrder)
}

Expand Down

0 comments on commit 1eb84f0

Please sign in to comment.