mirror of
https://github.com/bitwarden/server.git
synced 2025-04-20 04:28:13 -05:00
fix refs passed from multiservice push
This commit is contained in:
parent
9dedf359e5
commit
4ed309ea13
@ -13,8 +13,6 @@ namespace Bit.Core.Services
|
|||||||
public class MultiServicePushNotificationService : IPushNotificationService
|
public class MultiServicePushNotificationService : IPushNotificationService
|
||||||
{
|
{
|
||||||
private readonly List<IPushNotificationService> _services = new List<IPushNotificationService>();
|
private readonly List<IPushNotificationService> _services = new List<IPushNotificationService>();
|
||||||
private readonly IDeviceRepository _deviceRepository;
|
|
||||||
private readonly IInstallationDeviceRepository _installationDeviceRepository;
|
|
||||||
private readonly ILogger<MultiServicePushNotificationService> _logger;
|
private readonly ILogger<MultiServicePushNotificationService> _logger;
|
||||||
|
|
||||||
public MultiServicePushNotificationService(
|
public MultiServicePushNotificationService(
|
||||||
@ -32,7 +30,7 @@ namespace Bit.Core.Services
|
|||||||
globalSettings.Installation?.Id != null &&
|
globalSettings.Installation?.Id != null &&
|
||||||
CoreHelpers.SettingHasValue(globalSettings.Installation?.Key))
|
CoreHelpers.SettingHasValue(globalSettings.Installation?.Key))
|
||||||
{
|
{
|
||||||
_services.Add(new RelayPushNotificationService(_deviceRepository, globalSettings,
|
_services.Add(new RelayPushNotificationService(deviceRepository, globalSettings,
|
||||||
httpContextAccessor, relayLogger));
|
httpContextAccessor, relayLogger));
|
||||||
}
|
}
|
||||||
if(CoreHelpers.SettingHasValue(globalSettings.InternalIdentityKey) &&
|
if(CoreHelpers.SettingHasValue(globalSettings.InternalIdentityKey) &&
|
||||||
@ -46,7 +44,7 @@ namespace Bit.Core.Services
|
|||||||
{
|
{
|
||||||
if(CoreHelpers.SettingHasValue(globalSettings.NotificationHub.ConnectionString))
|
if(CoreHelpers.SettingHasValue(globalSettings.NotificationHub.ConnectionString))
|
||||||
{
|
{
|
||||||
_services.Add(new NotificationHubPushNotificationService(_installationDeviceRepository,
|
_services.Add(new NotificationHubPushNotificationService(installationDeviceRepository,
|
||||||
globalSettings, httpContextAccessor));
|
globalSettings, httpContextAccessor));
|
||||||
}
|
}
|
||||||
if(CoreHelpers.SettingHasValue(globalSettings.Notifications?.ConnectionString))
|
if(CoreHelpers.SettingHasValue(globalSettings.Notifications?.ConnectionString))
|
||||||
@ -55,8 +53,6 @@ namespace Bit.Core.Services
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_deviceRepository = deviceRepository;
|
|
||||||
_installationDeviceRepository = installationDeviceRepository;
|
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user