Skip to content

Commit

Permalink
MAN-104 - modify order column for next and last contact (#4317)
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj authored Oct 15, 2024
1 parent b655bc2 commit 2ad9b2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CaseloadController(private val userService: UserService) {
@PathVariable username: String,
@RequestParam(required = false, defaultValue = "0") page: Int,
@RequestParam(required = false, defaultValue = "100") size: Int,
@RequestParam(required = false, defaultValue = "nextContact.desc") sortBy: String,
@RequestParam(required = false, defaultValue = "nextContact.asc") sortBy: String,
@RequestBody body: UserSearchFilter
) = userService.searchUserCaseload(username, body, PageRequest.of(page, size, sort(sortBy)), sortBy)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ interface CaseloadRepository : JpaRepository<Caseload, Long> {
}

enum class CaseloadOrderType(val sortColumn: String) {
NEXT_CONTACT("naType.description"),
LAST_CONTACT("paType.description"),
NEXT_CONTACT("na.appointmentDatetime"),
LAST_CONTACT("pa.appointmentDatetime"),
SENTENCE("dt.description"),
SURNAME("p.surname"),
NAME_OR_CRN("p.surname"),
Expand Down

0 comments on commit 2ad9b2d

Please sign in to comment.