This commit is contained in:
2022-03-08 17:17:42 +00:00
parent 5e38d5bd0f
commit c95540920c
8 changed files with 65 additions and 24 deletions

View File

@@ -116,11 +116,11 @@ namespace AyaNova.Biz
private static async Task DeliverCustomerNotificationSMTP(CustomerNotifyEvent ne, CustomerNotifySubscription subscription, string deliveryAddress, AyContext ct)
{
var DeliveryLogItem = new NotifyDeliveryLog()
var DeliveryLogItem = new CustomerNotifyDeliveryLog()
{
Processed = DateTime.UtcNow,
ObjectId = ne.ObjectId,
NotifySubscriptionId = ne.CustomerNotifySubscriptionId,
CustomerNotifySubscriptionId = ne.CustomerNotifySubscriptionId,
Fail = false
};
@@ -288,7 +288,7 @@ namespace AyaNova.Biz
ct.CustomerNotifyEvent.Remove(ne);
//add delivery log item
await ct.NotifyDeliveryLog.AddAsync(DeliveryLogItem);
await ct.CustomerNotifyDeliveryLog.AddAsync(DeliveryLogItem);
await ct.SaveChangesAsync();
}
}