This commit is contained in:
@@ -280,7 +280,7 @@ namespace AyaNova.Biz
|
|||||||
{
|
{
|
||||||
|
|
||||||
//TODO: this is shitty, needs to mention notifications to be maximally useful
|
//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");
|
AddError(ApiErrorCode.INVALID_OPERATION, null, "LT:ErrorDBForeignKeyViolation");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace AyaNova.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public NotifyDeliveryMethod DeliveryMethod { get; set; }
|
public NotifyDeliveryMethod DeliveryMethod { get; set; }
|
||||||
public string DeliveryAddress { 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
|
//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;
|
DecValue = 0;
|
||||||
AgeValue = TimeSpan.Zero;
|
AgeValue = TimeSpan.Zero;
|
||||||
AdvanceNotice = TimeSpan.Zero;
|
AdvanceNotice = TimeSpan.Zero;
|
||||||
LinkToReportId = 0;
|
LinkReportId = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
Reference in New Issue
Block a user