Skip to content

fix: filter out cancelled events to prevent Invalid start time errors#520

Open
claw-56k wants to merge 1 commit into
derekantrican:masterfrom
claw-56k:fix/cancelled-events
Open

fix: filter out cancelled events to prevent Invalid start time errors#520
claw-56k wants to merge 1 commit into
derekantrican:masterfrom
claw-56k:fix/cancelled-events

Conversation

@claw-56k

Copy link
Copy Markdown

Fixes #315

This PR filters out events with status 'cancelled' from the calendarEvents array to prevent 'Invalid start time' errors when the script tries to update them.

The fix adds a simple filter after fetching existing events:

calendarEvents = calendarEvents.filter(e => e.status !== "cancelled");

This resolves the issue where recurring events with 'cancelled' status were causing sync failures.

Events with status 'cancelled' were causing 'Invalid start time' errors
when the script tried to update them. This fix filters out cancelled
events from the calendarEvents array before processing.

Fixes derekantrican#315
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'Invalid start time' error from calendar.events.update

2 participants