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