summaryrefslogtreecommitdiff
path: root/src/main/kotlin/dev/dnpm/etl/processor
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2024-07-15 11:59:00 +0200
committerPaul-Christian Volkmer2024-07-15 11:59:00 +0200
commit464c8b8c1d29aabef21b34d1a69028ad2922f82f (patch)
tree129a3ce9fb58f9a9db23965ee9f6b35764d2aa2c /src/main/kotlin/dev/dnpm/etl/processor
parent3f1bb4f4e24c7c7b7d57b640d8603242f306b720 (diff)
refactor: use dedicated type for path param
Diffstat (limited to 'src/main/kotlin/dev/dnpm/etl/processor')
-rw-r--r--src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt b/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt
index 5419477..54920b1 100644
--- a/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt
+++ b/src/main/kotlin/dev/dnpm/etl/processor/web/HomeController.kt
@@ -53,12 +53,12 @@ class HomeController(
@GetMapping(path = ["patient/{patientPseudonym}"])
fun byPatient(
- @PathVariable patientPseudonym: String,
+ @PathVariable patientPseudonym: PatientPseudonym,
@PageableDefault(page = 0, size = 20, sort = ["processedAt"], direction = Sort.Direction.DESC) pageable: Pageable,
model: Model
): String {
- val requests = requestService.findRequestByPatientId(PatientPseudonym(patientPseudonym), pageable)
- model.addAttribute("patientPseudonym", patientPseudonym)
+ val requests = requestService.findRequestByPatientId(patientPseudonym, pageable)
+ model.addAttribute("patientPseudonym", patientPseudonym.value)
model.addAttribute("requests", requests)
return "index"