🐛 Fix save notification again..
This commit is contained in:
@@ -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,
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user