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

This commit is contained in:
Alex van Andel
2022-05-25 11:12:49 -06:00
committed by zomars
parent 29b09ce85d
commit 6c248bb9f0
@@ -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);