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
commit ec07ec84f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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",