Fix deleted event when on different cal (404) (#2882)

hotfix/production/preview-embed-not-working
Alex van Andel 2022-05-25 17:40:33 +01:00 committed by zomars
parent 29b09ce85d
commit 6c248bb9f0
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ export default class GoogleCalendarService implements Calendar {
/* 410 is when an event is already deleted on the Google cal before on cal.com
404 is when the event is on a different calendar */
console.error("There was an error contacting google calendar service: ", err);
if (err.code === (410 || 404)) return resolve();
if (err.code === 410 || err.code === 404) return resolve();
return reject(err);
}
return resolve(event?.data);