diff --git a/pages/api/bookings/[uuid]/index.ts b/pages/api/bookings/[uuid]/index.ts index c86ceb2..d5e4da9 100644 --- a/pages/api/bookings/[uuid]/index.ts +++ b/pages/api/bookings/[uuid]/index.ts @@ -65,11 +65,11 @@ export default async function userHandler( // TODO: this should really go into the schema try { if (wasRejected(previous, current)) { - sendBookingRejected(current) + await sendBookingRejected(current) } else if (wasConfirmed(previous, current)) { - sendBookingConfirmed(current) + await sendBookingConfirmed(current) } else if (wasCanceled(previous, current)) { - sendBookingCanceled(current) + await sendBookingCanceled(current) } } catch (error) { log.error(`Failed to send booking ${current} for booking ${uuid}`)