Disable broken calendar email (#3946)

* Disable broken calendar email

* Add comment

* Apply suggestions from code review

Co-authored-by: alannnc <alannnc@gmail.com>

* Apply suggestions from code review

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: alannnc <alannnc@gmail.com>
This commit is contained in:
Joe Au-Yeung 2022-08-26 14:12:47 -04:00 committed by GitHub
parent 006badc3b5
commit fac99c3e9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,8 +170,11 @@ export const createEvent = async (
if (error?.code === 404) {
return undefined;
}
await sendBrokenIntegrationEmail(calEvent, "calendar");
log.error("createEvent failed", error, calEvent);
// @TODO: This code will be off till we can investigate an error with it
//https://github.com/calcom/cal.com/issues/3949
// await sendBrokenIntegrationEmail(calEvent, "calendar");
https: log.error("createEvent failed", error, calEvent);
return undefined;
})
: undefined;
@ -206,7 +209,9 @@ export const updateEvent = async (
return event;
})
.catch(async (e) => {
await sendBrokenIntegrationEmail(calEvent, "calendar");
// @TODO: This code will be off till we can investigate an error with it
// @see https://github.com/calcom/cal.com/issues/3949
// await sendBrokenIntegrationEmail(calEvent, "calendar");
log.error("updateEvent failed", e, calEvent);
return undefined;
})