mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
well, need to wait until mail is send or function is terminated
This commit is contained in:
@@ -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}`)
|
||||
|
||||
Reference in New Issue
Block a user