mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Cleanup data from the InvoiceEvents table (#5904)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user