mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Start using JSONB column instead of app side compressed data (#4574)
This commit is contained in:
@@ -154,15 +154,15 @@ namespace BTCPayServer.Services.Notifications
|
||||
var handler = GetHandler(data.NotificationType);
|
||||
if (handler is null)
|
||||
return null;
|
||||
var notification = JsonConvert.DeserializeObject(ZipUtils.Unzip(data.Blob), handler.NotificationBlobType);
|
||||
var obj = new NotificationViewModel
|
||||
{
|
||||
Id = data.Id,
|
||||
Type = data.NotificationType,
|
||||
Created = data.Created,
|
||||
Seen = data.Seen
|
||||
};
|
||||
handler.FillViewModel(notification, obj);
|
||||
var notification = data.HasTypedBlob(handler.NotificationBlobType).GetBlob();
|
||||
var obj = new NotificationViewModel
|
||||
{
|
||||
Id = data.Id,
|
||||
Type = data.NotificationType,
|
||||
Created = data.Created,
|
||||
Seen = data.Seen
|
||||
};
|
||||
handler.FillViewModel(notification, obj);
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user