aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/services/rest/RestPatientEligibleTrialService.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/services/rest/RestPatientEligibleTrialService.scala b/src/main/scala/xyz/driver/pdsuidomain/services/rest/RestPatientEligibleTrialService.scala
index 06aa6d0..210e7c1 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/services/rest/RestPatientEligibleTrialService.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/services/rest/RestPatientEligibleTrialService.scala
@@ -72,7 +72,7 @@ class RestPatientEligibleTrialService(transport: ServiceTransport, baseUri: Uri)
entity <- Marshal(draftPatientTrialArmGroup).to[RequestEntity]
request = HttpRequest(
HttpMethods.PATCH,
- endpointUri(baseUri, s"/v1/patient/${origEligibleTrialWithTrial.group.patientId}/trial/${origEligibleTrialWithTrial.group.id}"))
+ endpointUri(baseUri, s"/v1/patient/${origEligibleTrialWithTrial.group.patientId}/trial/${origEligibleTrialWithTrial.trial.id}"))
.withEntity(entity)
response <- transport.sendRequestGetResponse(requestContext)(request)
reply <- apiResponse[RichPatientEligibleTrial](response)