|
|
|
@ -121,6 +121,8 @@ namespace LY.MicroService.RealtimeMessage.EventBus.Distributed |
|
|
|
} |
|
|
|
|
|
|
|
if (notification.NotificationType == NotificationType.System) |
|
|
|
{ |
|
|
|
using (CurrentTenant.Change(null)) |
|
|
|
{ |
|
|
|
await SendToTenantAsync(null, notification, eventData); |
|
|
|
|
|
|
|
@ -131,6 +133,7 @@ namespace LY.MicroService.RealtimeMessage.EventBus.Distributed |
|
|
|
await SendToTenantAsync(activeTenant.Id, notification, eventData); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
await SendToTenantAsync(eventData.TenantId, notification, eventData); |
|
|
|
@ -147,6 +150,8 @@ namespace LY.MicroService.RealtimeMessage.EventBus.Distributed |
|
|
|
} |
|
|
|
|
|
|
|
if (notification.NotificationType == NotificationType.System) |
|
|
|
{ |
|
|
|
using (CurrentTenant.Change(null)) |
|
|
|
{ |
|
|
|
await SendToTenantAsync(null, notification, eventData); |
|
|
|
|
|
|
|
@ -157,6 +162,7 @@ namespace LY.MicroService.RealtimeMessage.EventBus.Distributed |
|
|
|
await SendToTenantAsync(activeTenant.Id, notification, eventData); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
await SendToTenantAsync(eventData.TenantId, notification, eventData); |
|
|
|
|