State: I have a Tues through Fri recurring event.
Scenario a user deletes Tuesday than deletes Friday,
console.logging args.data[0].parent during actionBegin the RecurrenceException shows both days but only posts the first day in my database. see below.
args.data[0].parent:
{
"Description": "Tues Day through Friday Recurring Event",
"Id": 359,
"date_created": "2022-10-04T14:38:36.331274+00:00",
"Subject": "Tues-Fri Event",
"created_by": null,
"last_modified": "2022-10-04T17:53:01.062+00:00",
"StartTime": "2022-10-04T11:30:00.000Z",
"EndTime": "2022-10-04T22:30:00.000Z",
"completed": false,
"started": false,
"RecurrenceRule": "FREQ=WEEKLY;BYDAY=TU,WE,TH,FR;INTERVAL=1",
"RecurrenceException": "20221005T113000Z,20221007T113000Z",
"RecurrenceID": null,
"day_ended": false,
"schedule_id": 1,
"end_value": null,
"StartValue": "occupied",
"group_id": 1,
"__typename": "events"
}
console.logging args.data[0].parent.RecurrenceException = 20221005T113000Z
I would expect both days so when i update the parent Recurrence exception in the database both values are there.
Having a hard time understanding what to do efficiently. Am I supposed to grab the recurrence exceptions convert them into an array loop through them and see if the new exception is there if not add it and convert it back to a string and post to my DB?