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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user