Skip to content

Commit

Permalink
fix: incorrect property of updateResult when failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Oct 9, 2023
1 parent fbfd78f commit dfeea59
Showing 1 changed file with 1 addition and 1 deletion.
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.result, updateResult.code);
return updateService.doFailureResponse(updateResult.doc, updateResult.code);

return updateService.doSuccessResponse(updateResult);
};

0 comments on commit dfeea59

Please sign in to comment.