diff --git a/HrynCo.NotificationService.DAL.EF/Repositories/EmailChannelRepository.cs b/HrynCo.NotificationService.DAL.EF/Repositories/EmailChannelRepository.cs index bba5a2d..e471dee 100644 --- a/HrynCo.NotificationService.DAL.EF/Repositories/EmailChannelRepository.cs +++ b/HrynCo.NotificationService.DAL.EF/Repositories/EmailChannelRepository.cs @@ -89,7 +89,7 @@ internal sealed class EmailChannelRepository : EfRepository, ServiceName = p.ServiceName, Priority = p.Priority, EmailChannelType = p.EmailChannelType, - SettingsJson = JsonSerializer.Serialize(p.Settings), + SettingsJson = JsonSerializer.Serialize(p.Settings, p.Settings.GetType()), DailyLimit = p.DailyLimit, MonthlyLimit = p.MonthlyLimit, WarnThresholdPercent = p.WarnThresholdPercent,