Fix missing store in export for invoices

fixes #3505
This commit is contained in:
Kukks
2022-02-26 08:50:27 +01:00
committed by Andrew Camilleri
parent e77b8d29cf
commit eb2a887f77

View File

@@ -872,6 +872,7 @@ namespace BTCPayServer.Controllers
var model = new InvoiceExport(_CurrencyNameTable);
InvoiceQuery invoiceQuery = GetInvoiceQuery(searchTerm, timezoneOffset);
invoiceQuery.StoreId = new[] { GetCurrentStore().Id };
invoiceQuery.Skip = 0;
invoiceQuery.Take = int.MaxValue;
var invoices = await _InvoiceRepository.GetInvoices(invoiceQuery);