From fac99c3e9beb1851508877e41f1c644af74af9dd Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Date: Fri, 26 Aug 2022 14:12:47 -0400 Subject: [PATCH] Disable broken calendar email (#3946) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Disable broken calendar email * Add comment * Apply suggestions from code review Co-authored-by: alannnc * Apply suggestions from code review Co-authored-by: Peer Richelsen Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Omar López Co-authored-by: alannnc --- packages/core/CalendarManager.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/core/CalendarManager.ts b/packages/core/CalendarManager.ts index 683ed6bd5c..6ef4d943e6 100644 --- a/packages/core/CalendarManager.ts +++ b/packages/core/CalendarManager.ts @@ -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; })