mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Prune webhook data from database
This commit is contained in:
committed by
Andrew Camilleri
parent
418b476725
commit
4e03c2523a
@@ -22,13 +22,16 @@ namespace BTCPayServer.Models.StoreViewModels
|
||||
Success = blob.Status == WebhookDeliveryStatus.HttpSuccess;
|
||||
ErrorMessage = blob.ErrorMessage ?? "Success";
|
||||
Time = s.Timestamp;
|
||||
Type = blob.ReadRequestAs<WebhookEvent>().Type;
|
||||
var evt = blob.ReadRequestAs<WebhookEvent>();
|
||||
Type = evt.Type;
|
||||
Pruned = evt.IsPruned();
|
||||
WebhookId = s.Id;
|
||||
PayloadUrl = s.Webhook?.GetBlob().Url;
|
||||
}
|
||||
public string Id { get; set; }
|
||||
public DateTimeOffset Time { get; set; }
|
||||
public WebhookEventType Type { get; private set; }
|
||||
public bool Pruned { get; set; }
|
||||
public string WebhookId { get; set; }
|
||||
public bool Success { get; set; }
|
||||
public string ErrorMessage { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user