From f70cb8907a07a4b83837dc0505175bf2d93f9fdc Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 8 Sep 2020 23:32:06 +0000 Subject: [PATCH] --- server/AyaNova/biz/ReportBiz.cs | 2 +- server/AyaNova/models/NotifySubscription.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/AyaNova/biz/ReportBiz.cs b/server/AyaNova/biz/ReportBiz.cs index 7c96213e..b263a757 100644 --- a/server/AyaNova/biz/ReportBiz.cs +++ b/server/AyaNova/biz/ReportBiz.cs @@ -280,7 +280,7 @@ namespace AyaNova.Biz { //TODO: this is shitty, needs to mention notifications to be maximally useful - if (await ct.NotifySubscription.AnyAsync(z => z.LinkToReportId == inObj.Id) == true) + if (await ct.NotifySubscription.AnyAsync(z => z.LinkReportId == inObj.Id) == true) { AddError(ApiErrorCode.INVALID_OPERATION, null, "LT:ErrorDBForeignKeyViolation"); return; diff --git a/server/AyaNova/models/NotifySubscription.cs b/server/AyaNova/models/NotifySubscription.cs index 83a12c49..f2fef955 100644 --- a/server/AyaNova/models/NotifySubscription.cs +++ b/server/AyaNova/models/NotifySubscription.cs @@ -21,7 +21,7 @@ namespace AyaNova.Models [Required] public NotifyDeliveryMethod DeliveryMethod { get; set; } public string DeliveryAddress { get; set; } - public long LinkToReportId { get; set; } + public long LinkReportId { get; set; } //CREATE NOTIFY EVENT CONDITIONS - Following fields are all conditions set on whether to create a notify event or not @@ -44,7 +44,7 @@ namespace AyaNova.Models DecValue = 0; AgeValue = TimeSpan.Zero; AdvanceNotice = TimeSpan.Zero; - LinkToReportId = 0; + LinkReportId = 0; } }//eoc