Skip to content

Instantly share code, notes, and snippets.

@CodisRedding
Created June 27, 2017 19:49
Show Gist options
  • Save CodisRedding/7abb13485a862568138a8b7d5825232e to your computer and use it in GitHub Desktop.
Save CodisRedding/7abb13485a862568138a8b7d5825232e to your computer and use it in GitHub Desktop.
return bluebird.join(
auth.getUserJwt(personId, clientId),
formioSubmissionDiff.diff(submission, personId, clientId, apiPath),
(userToken, diff) => {
saveDataToEhr(diff, personId, clientId);
})
.catch((error) => {
logger.error(error);
return reply(boom.badRequest(error.message));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment