Cleanup data from the InvoiceEvents table (#5904)

This commit is contained in:
Nicolas Dorier
2024-04-25 14:09:01 +09:00
committed by GitHub
parent 06edb0e157
commit 0c35939001
12 changed files with 74 additions and 101 deletions

View File

@@ -50,10 +50,6 @@ namespace BTCPayServer.Data
{
entity.AvailableAddressHashes = invoiceData.AddressInvoices.Select(a => a.GetAddress() + a.GetPaymentMethodId()).ToHashSet();
}
if (invoiceData.Events != null)
{
entity.Events = invoiceData.Events.OrderBy(c => c.Timestamp).ToList();
}
if (invoiceData.Refunds != null)
{
entity.Refunds = invoiceData.Refunds.OrderBy(c => c.PullPaymentData.StartDate).ToList();