1
0
mirror of https://github.com/bitwarden/server synced 2025-12-17 00:33:23 +00:00

Refactor PendingSecurityTasks to RefreshSecurityTasks (#5903)

- Allows for more general use case of security task notifications
This commit is contained in:
Nick Krantz
2025-07-07 09:24:57 -05:00
committed by GitHub
parent 5dde9ac924
commit 240968ef4c
10 changed files with 15 additions and 15 deletions

View File

@@ -135,7 +135,7 @@ public static class HubHelpers
}
break;
case PushType.PendingSecurityTasks:
case PushType.RefreshSecurityTasks:
var pendingTasksData = JsonSerializer.Deserialize<PushNotificationData<UserPushNotification>>(notificationJson, _deserializerOptions);
await hubContext.Clients.User(pendingTasksData.Payload.UserId.ToString())
.SendAsync(_receiveMessageMethod, pendingTasksData, cancellationToken);