diff options
author | Jakob Odersky <jakob@driver.xyz> | 2017-11-20 21:49:42 -0800 |
---|---|---|
committer | Jakob Odersky <jakob@driver.xyz> | 2017-11-20 21:51:29 -0800 |
commit | f58eeb490fc8f829a5c8f727ee354bfad51c721a (patch) | |
tree | cf264261e3ec64294a4bf66e86b23d6a972cceb2 /src/main/scala/xyz/driver/pdsuidomain | |
parent | 5c50fd8f9eb4588e8f2c7ea5b84822e224b222e5 (diff) | |
download | rest-query-f58eeb490fc8f829a5c8f727ee354bfad51c721a.tar.gz rest-query-f58eeb490fc8f829a5c8f727ee354bfad51c721a.tar.bz2 rest-query-f58eeb490fc8f829a5c8f727ee354bfad51c721a.zip |
Fix trial ID in update route
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/services/rest/RestPatientEligibleTrialService.scala | 2 |
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 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) |