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

@@ -103,7 +103,6 @@ namespace BTCPayServer.Controllers
InvoiceId = new[] { invoiceId },
UserId = GetUserId(),
IncludeAddresses = true,
IncludeEvents = true,
IncludeArchived = true,
IncludeRefunds = true,
})).FirstOrDefault();
@@ -144,7 +143,7 @@ namespace BTCPayServer.Controllers
RedirectUrl = invoice.RedirectURL?.AbsoluteUri,
TypedMetadata = invoice.Metadata,
StatusException = invoice.ExceptionStatus,
Events = invoice.Events,
Events = await _InvoiceRepository.GetInvoiceLogs(invoice.Id),
Metadata = metaData,
Archived = invoice.Archived,
HasRefund = invoice.Refunds.Any(),
@@ -610,7 +609,6 @@ namespace BTCPayServer.Controllers
InvoiceId = new[] { invoiceId },
UserId = GetUserId(),
IncludeAddresses = false,
IncludeEvents = false,
IncludeArchived = true,
})).FirstOrDefault();
if (invoice == null)