diff --git a/server/AyaNova/biz/NotifyEventProcessor.cs b/server/AyaNova/biz/NotifyEventProcessor.cs index f55e9207..14ba25d8 100644 --- a/server/AyaNova/biz/NotifyEventProcessor.cs +++ b/server/AyaNova/biz/NotifyEventProcessor.cs @@ -80,11 +80,15 @@ namespace AyaNova.Biz continue; //AgeValue - switch(ev.EventType){ - case NotifyEventType.ObjectAge: - case NotifyEventType.WorkorderStatusAge: - case NotifyEventType.quote - } + switch (ev.EventType) + { + case NotifyEventType.ObjectAge: + case NotifyEventType.WorkorderStatusAge: + case NotifyEventType.QuoteStatusAge: + if (AgeValue != null && AgeValue < sub.AgeValue)//current object age value is less than subscription required age value? (not old enough) + continue;//then skip it + break; + } //Here we know the sub matches so create the NotifyEvent here