Only send single mail when booking zoom

This commit is contained in:
nicolas committed 2021-07-20 20:07:59 +02:00
1 parent a40a5c04fe
commit 7aff32fb50
3 files changed
+79 -43

No files matched your search

+1 -1
View File
@@ -356,7 +356,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
await Promise.all([bookingReferenceDeletes, attendeeDeletes, bookingDeletes]);
} else {
// Use EventManager to conditionally use all needed integrations.
const results: Array<EventResult> = await eventManager.create(evt);
results = await eventManager.create(evt);
if (results.length > 0 && results.every((res) => !res.success)) {
const error = {