1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 16:42:50 -05:00

PM-10600: Sent to organization typo

This commit is contained in:
Maciej Zieniuk
2024-10-22 21:54:28 +01:00
parent e9d1052545
commit e0d46d2dd3

View File

@ -220,8 +220,8 @@ public class NotificationHubPushNotificationService : IPushNotificationService
private async Task SendPayloadToOrganizationAsync(Guid orgId, PushType type, object payload, private async Task SendPayloadToOrganizationAsync(Guid orgId, PushType type, object payload,
bool excludeCurrentContext, ClientType? clientType = null) bool excludeCurrentContext, ClientType? clientType = null)
{ {
await SendPayloadToUserAsync(orgId.ToString(), type, payload, GetContextIdentifier(excludeCurrentContext), await SendPayloadToOrganizationAsync(orgId.ToString(), type, payload,
clientType: clientType); GetContextIdentifier(excludeCurrentContext), clientType: clientType);
} }
public async Task SendPayloadToUserAsync(string userId, PushType type, object payload, string identifier, public async Task SendPayloadToUserAsync(string userId, PushType type, object payload, string identifier,
@ -278,8 +278,7 @@ public class NotificationHubPushNotificationService : IPushNotificationService
var results = await _notificationHubPool.AllClients.SendTemplateNotificationAsync( var results = await _notificationHubPool.AllClients.SendTemplateNotificationAsync(
new Dictionary<string, string> new Dictionary<string, string>
{ {
{ "type", ((byte)type).ToString() }, { "type", ((byte)type).ToString() }, { "payload", JsonSerializer.Serialize(payload) }
{ "payload", JsonSerializer.Serialize(payload) }
}, tag); }, tag);
if (_enableTracing) if (_enableTracing)
@ -290,7 +289,9 @@ public class NotificationHubPushNotificationService : IPushNotificationService
{ {
continue; continue;
} }
_logger.LogInformation("Azure Notification Hub Tracking ID: {Id} | {Type} push notification with {Success} successes and {Failure} failures with a payload of {@Payload} and result of {@Results}",
_logger.LogInformation(
"Azure Notification Hub Tracking ID: {Id} | {Type} push notification with {Success} successes and {Failure} failures with a payload of {@Payload} and result of {@Results}",
outcome.TrackingId, type, outcome.Success, outcome.Failure, payload, outcome.Results); outcome.TrackingId, type, outcome.Success, outcome.Failure, payload, outcome.Results);
} }
} }