This commit is contained in:
2021-09-20 17:56:50 +00:00
parent 14e0a06e6d
commit 682c13a099
10 changed files with 42 additions and 18 deletions

View File

@@ -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()}]");