This commit is contained in:
@@ -93,6 +93,9 @@ func handleEvent(event models.Event) (responses []models.Event) {
|
||||
if handler.EventName != event.Name {
|
||||
continue
|
||||
}
|
||||
if !handler.IsWithinTimeRange() {
|
||||
continue
|
||||
}
|
||||
|
||||
devices, err := config.DeviceRepository().FetchByReference(ctx, handler.TargetKind, handler.TargetValue)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user