Fix deleted event when on different cal (404) (#2882)
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);
|
||||
|
|
Loading…
Reference in New Issue