diff --git a/common/ASC.Core.Common/Configuration/Consumer.cs b/common/ASC.Core.Common/Configuration/Consumer.cs index 41da697eea..f870b5f987 100644 --- a/common/ASC.Core.Common/Configuration/Consumer.cs +++ b/common/ASC.Core.Common/Configuration/Consumer.cs @@ -92,7 +92,9 @@ namespace ASC.Core.Common.Configuration } public Consumer() - { + { + Props = new Dictionary(); + Additional = new Dictionary(); } public Consumer( @@ -100,7 +102,7 @@ namespace ASC.Core.Common.Configuration CoreBaseSettings coreBaseSettings, CoreSettings coreSettings, IConfiguration configuration, - ICacheNotify cache) + ICacheNotify cache) : this() { TenantManager = tenantManager; CoreBaseSettings = coreBaseSettings; @@ -110,8 +112,6 @@ namespace ASC.Core.Common.Configuration OnlyDefault = configuration["core:default-consumers"] == "true"; Name = ""; Order = int.MaxValue; - Props = new Dictionary(); - Additional = new Dictionary(); } public Consumer( @@ -285,7 +285,7 @@ namespace ASC.Core.Common.Configuration public const string HandlerTypeKey = "handlerType"; public const string CdnKey = "cdn"; - public DataStoreConsumer() + public DataStoreConsumer() : base() { } diff --git a/web/ASC.Web.Api/Controllers/SettingsController.cs b/web/ASC.Web.Api/Controllers/SettingsController.cs index 262ccfa5f4..df804b7b68 100644 --- a/web/ASC.Web.Api/Controllers/SettingsController.cs +++ b/web/ASC.Web.Api/Controllers/SettingsController.cs @@ -1405,7 +1405,8 @@ namespace ASC.Api.Settings .AddStorageHelperService() .AddTenantLogoManagerService() .AddBuildVersionService() - .AddStatisticManagerService(); + .AddStatisticManagerService() + .AddEmployeeWraper(); } } } \ No newline at end of file