🐛 Fix save notification again..

This commit is contained in:
2025-08-24 18:05:42 +08:00
parent 75a975049c
commit 9f38a288b9
2 changed files with 3 additions and 1 deletions

View File

@@ -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,

View File

@@ -98,7 +98,8 @@ public override Task<Empty> PushWebSocketPacketToDevice(PushWebSocketPacketToDev
Content = request.Notification.Body,
Meta = request.Notification.HasMeta
? GrpcTypeHelper.ConvertByteStringToObject<Dictionary<string, object?>>(request.Notification.Meta) ?? []
: []
: [],
AccountId = Guid.Parse(request.UserId),
};
if (request.Notification.ActionUri is not null)