This commit is contained in:
2020-09-08 23:32:06 +00:00
parent af9263649a
commit f70cb8907a
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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