This commit is contained in:
@@ -1076,7 +1076,7 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
|
|
||||||
#region CustomerServiceImminent
|
#region CustomerServiceImminent
|
||||||
if (ayaEvent == AyaEvent.Created && oProposed.ServiceDate != null)
|
if (ayaEvent == AyaEvent.Created && oProposed.ServiceDate != null && oProposed.ServiceDate > DateTime.UtcNow)
|
||||||
{
|
{
|
||||||
|
|
||||||
var subs = await ct.NotifySubscription.AsNoTracking().Where(z => z.EventType == NotifyEventType.CustomerServiceImminent).ToListAsync();
|
var subs = await ct.NotifySubscription.AsNoTracking().Where(z => z.EventType == NotifyEventType.CustomerServiceImminent).ToListAsync();
|
||||||
@@ -1114,7 +1114,7 @@ namespace AyaNova.Biz
|
|||||||
await NotifyEventHelper.ClearPriorEventsForObject(ct, proposedObj.AyaType, proposedObj.Id, NotifyEventType.CustomerServiceImminent);
|
await NotifyEventHelper.ClearPriorEventsForObject(ct, proposedObj.AyaType, proposedObj.Id, NotifyEventType.CustomerServiceImminent);
|
||||||
|
|
||||||
//new has date?
|
//new has date?
|
||||||
if (oProposed.ServiceDate != null)
|
if (oProposed.ServiceDate != null && oProposed.ServiceDate > DateTime.UtcNow)
|
||||||
{
|
{
|
||||||
var subs = await ct.NotifySubscription.AsNoTracking().Where(z => z.EventType == NotifyEventType.CustomerServiceImminent).ToListAsync();
|
var subs = await ct.NotifySubscription.AsNoTracking().Where(z => z.EventType == NotifyEventType.CustomerServiceImminent).ToListAsync();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user