This commit is contained in:
@@ -250,7 +250,7 @@ namespace AyaNova.Biz
|
||||
if (
|
||||
(currentObj.Name != proposedObj.Name) ||
|
||||
(currentObj.Notes != proposedObj.Notes) ||
|
||||
(currentObj.DueDate != proposedObj.DueDate) ||
|
||||
(currentObj.ReviewDate != proposedObj.ReviewDate) ||
|
||||
(currentObj.UserId != proposedObj.UserId) ||
|
||||
(currentObj.AssignedByUserId != proposedObj.AssignedByUserId))
|
||||
{
|
||||
@@ -503,7 +503,7 @@ namespace AyaNova.Biz
|
||||
var r = (Review)proposedObj;
|
||||
|
||||
//it not completed yet and not overdue already (which could indicate an import or something)
|
||||
if (r.CompletedDate == null && r.DueDate > DateTime.UtcNow)
|
||||
if (r.CompletedDate == null && r.ReviewDate > DateTime.UtcNow)
|
||||
{
|
||||
//Notify user
|
||||
await NotifyEventHelper.EnsureDefaultInAppUserNotificationSubscriptionExists(r.UserId, ct);
|
||||
@@ -520,7 +520,7 @@ namespace AyaNova.Biz
|
||||
AyaType = AyaType.Review,
|
||||
NotifySubscriptionId = sub.Id,
|
||||
Name = $"{eventNameTranslated} - {proposedObj.Name}",
|
||||
EventDate = r.DueDate
|
||||
EventDate = r.ReviewDate
|
||||
};
|
||||
await ct.NotifyEvent.AddAsync(n);
|
||||
log.LogDebug($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
@@ -545,7 +545,7 @@ namespace AyaNova.Biz
|
||||
AyaType = AyaType.Review,
|
||||
NotifySubscriptionId = sub.Id,
|
||||
Name = $"{eventNameTranslated} - {proposedObj.Name}",
|
||||
EventDate = r.DueDate
|
||||
EventDate = r.ReviewDate
|
||||
};
|
||||
await ct.NotifyEvent.AddAsync(n);
|
||||
log.LogDebug($"Adding NotifyEvent: [{n.ToString()}]");
|
||||
|
||||
Reference in New Issue
Block a user