From 9f38a288b9bc3733412680544b75669ec6d74c26 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 24 Aug 2025 18:05:42 +0800 Subject: [PATCH] :bug: Fix save notification again.. --- DysonNetwork.Pusher/Notification/PushService.cs | 1 + DysonNetwork.Pusher/Services/PusherServiceGrpc.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DysonNetwork.Pusher/Notification/PushService.cs b/DysonNetwork.Pusher/Notification/PushService.cs index 13d4b45..4cdad41 100644 --- a/DysonNetwork.Pusher/Notification/PushService.cs +++ b/DysonNetwork.Pusher/Notification/PushService.cs @@ -373,6 +373,7 @@ public class PushService _db.Notifications.AddRange(accounts.Select(a => new Notification { AccountId = a, + Topic = notification.Topic, Content = notification.Content, Title = notification.Title, Subtitle = notification.Subtitle, diff --git a/DysonNetwork.Pusher/Services/PusherServiceGrpc.cs b/DysonNetwork.Pusher/Services/PusherServiceGrpc.cs index db91f56..09dd973 100644 --- a/DysonNetwork.Pusher/Services/PusherServiceGrpc.cs +++ b/DysonNetwork.Pusher/Services/PusherServiceGrpc.cs @@ -98,7 +98,8 @@ public override Task PushWebSocketPacketToDevice(PushWebSocketPacketToDev Content = request.Notification.Body, Meta = request.Notification.HasMeta ? GrpcTypeHelper.ConvertByteStringToObject>(request.Notification.Meta) ?? [] - : [] + : [], + AccountId = Guid.Parse(request.UserId), }; if (request.Notification.ActionUri is not null)