-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix automated confirmation messages not sending #1635
Conversation
packages/zambdas/src/patient/appointment/prebook-create-appointment/index.ts
Outdated
Show resolved
Hide resolved
@@ -251,6 +254,23 @@ export async function createAppointment( | |||
} | |||
|
|||
console.log('success, here is the id: ', appointment.id); | |||
|
|||
// this is done after the performTransactionalFhirRequests because it needs the appointment id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that you can reference an intra-batch-created resource via the fullUrl property. Maybe you wanted to include this post with the rest of the transactional writes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i had no idea this was a thing. thank you! 1216023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, just note there is some possibility of a bug where subscriptions can be improperly invoked mid-transaction, causing some expected supporting resources to be missing when the subscription handler is run. I believe we've resolved to fix that bug before it reaches production, but is something I think I should flag here all the same.
#1239