Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Oct 27, 2023
2 parents 72a4865 + 4867f30 commit 7407819
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/FHIRApiService/services/update.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class UpdateService extends BaseFhirApiService {
this.response.set("Location", fullAbsoluteUrl);

this.response.append("Last-Modified", new Date().toUTCString());
return this.doResponse(resource.code, resource.doc);
return this.doResponse(resource.code, resource.result);
}

doFailureResponse(err, code) {
Expand Down
2 changes: 1 addition & 1 deletion api/FHIRApiService/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = async function (req, res, resourceType) {
let updateService = new UpdateService(req, res, resourceType);
let updateResult = await updateService.update();
if (!updateResult.status)
return updateService.doFailureResponse(updateResult.doc, updateResult.code);
return updateService.doFailureResponse(updateResult.result, updateResult.code);

return updateService.doSuccessResponse(updateResult);
};

0 comments on commit 7407819

Please sign in to comment.