log sending booking received mail

This commit is contained in:
Thomas Ruoff
2020-11-10 22:48:15 +01:00
parent 1b165ee0cf
commit a5f60c1114

View File

@@ -30,9 +30,15 @@ export default async function userHandler(
return
}
console.log(`received booking ${booking.uuid}`)
console.log(
`received booking ${booking.uuid} from {booking.booker.email}`
)
await sendReceivedBookingAdminMail(booking)
console.log(`send booking ${booking.uuid} received to admin`)
await sendReceivedBookingBookerMail(booking)
console.log(
`send booking ${booking.uuid} received to {booking.booker.email}`
)
break
default:
res.setHeader('Allow', ['POST'])