From f58eeb490fc8f829a5c8f727ee354bfad51c721a Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Mon, 20 Nov 2017 21:49:42 -0800 Subject: Fix trial ID in update route --- .../pdsuidomain/services/rest/RestPatientEligibleTrialService.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/scala') 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 f1c5f54..9cc01d1 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/services/rest/RestPatientEligibleTrialService.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/services/rest/RestPatientEligibleTrialService.scala @@ -73,7 +73,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.trial.id}")) + endpointUri(baseUri, s"/v1/patient/${origEligibleTrialWithTrial.group.patientId}/trial/${origEligibleTrialWithTrial.group.id}")) .withEntity(entity) response <- transport.sendRequestGetResponse(requestContext)(request) reply <- apiResponse[RichPatientEligibleTrial](response) -- cgit v1.2.3