Merge pull request #655 from PepperDash/hotfix/techroom-scheduler-event-update

Hotfix/techroom scheduler event update
This commit is contained in:
Andrew Welker
2021-03-12 17:16:55 -07:00
committed by GitHub

View File

@@ -183,11 +183,12 @@ namespace PepperDash.Essentials
var roomEvent = _roomScheduledEventGroup.ScheduledEvents[scheduledEvent.Key]; var roomEvent = _roomScheduledEventGroup.ScheduledEvents[scheduledEvent.Key];
if (!SchedulerUtilities.CheckEventTimeForMatch(roomEvent, DateTime.Parse(scheduledEvent.Time)) && //if (SchedulerUtilities.CheckEventTimeForMatch(roomEvent, DateTime.Parse(scheduledEvent.Time)) &&
!SchedulerUtilities.CheckEventRecurrenceForMatch(roomEvent, scheduledEvent.Days)) // SchedulerUtilities.CheckEventRecurrenceForMatch(roomEvent, scheduledEvent.Days))
{ //{
return; // Debug.Console(1, this, "Existing event matches new event properties. Nothing to update");
} // return;
//}
Debug.Console(1, this, Debug.Console(1, this,
"Existing event does not match new config properties. Deleting existing event '{0}' and creating new event from configuration", "Existing event does not match new config properties. Deleting existing event '{0}' and creating new event from configuration",