diff --git a/src/VirtoCommerce.NotificationsModule.Core/Model/UnregisteredNotification.cs b/src/VirtoCommerce.NotificationsModule.Core/Model/UnregisteredNotification.cs index 14c83a4..ecc13e7 100644 --- a/src/VirtoCommerce.NotificationsModule.Core/Model/UnregisteredNotification.cs +++ b/src/VirtoCommerce.NotificationsModule.Core/Model/UnregisteredNotification.cs @@ -6,12 +6,17 @@ namespace VirtoCommerce.NotificationsModule.Core.Model //The special type for handle cases when the system have stored the notification objects with unregistered types. public class UnregisteredNotification : Notification { + public UnregisteredNotification(string type) : base(type) + { + + } + public UnregisteredNotification() : base(nameof(UnregisteredNotification)) { Templates = new List(); } public override string Kind => "undef"; - + public override void SetFromToMembers(string from, string to) { diff --git a/src/VirtoCommerce.NotificationsModule.Data/Services/NotificationRegistrar.cs b/src/VirtoCommerce.NotificationsModule.Data/Services/NotificationRegistrar.cs index b7c547b..5de9eab 100644 --- a/src/VirtoCommerce.NotificationsModule.Data/Services/NotificationRegistrar.cs +++ b/src/VirtoCommerce.NotificationsModule.Data/Services/NotificationRegistrar.cs @@ -47,6 +47,5 @@ public NotificationBuilder OverrideNotificationType