derekantrican / GAS-ICS-Sync

A Google Apps Script for syncing ICS/ICAL files faster than the current Google Calendar speed
GNU General Public License v3.0
1.5k stars 192 forks source link

The deletion of all events #436

Closed fred816 closed 2 months ago

fred816 commented 4 months ago

The problem

The code you developed is super useful, I appreciate it.

It seems like there's a bug where If the registered calendar cannot be retrieved, it deletes all events.

I discovered that if responses.length at line 174 is 0, it deletes all existing events. To resolve this, I added the following code at line 176 and it worked.

Thanks


if (responses.length == 0) continue;

Version of GAS-ICS-Sync

5.8

Additional information & file uploads

No response

derekantrican commented 4 months ago

I think this might be a duplicate of #343

Lonestarjeepin commented 2 months ago

Closing as duplicate of #343