mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
Cann GetInvoicesTotal in parallel
This commit is contained in:
parent
2642e11ce2
commit
b5a0e844d2
1 changed files with 2 additions and 1 deletions
|
@ -448,7 +448,7 @@ namespace BTCPayServer.Controllers
|
|||
StatusMessage = StatusMessage
|
||||
};
|
||||
InvoiceQuery invoiceQuery = GetInvoiceQuery(searchTerm);
|
||||
model.Total = await _InvoiceRepository.GetInvoicesTotal(invoiceQuery);
|
||||
var counting = _InvoiceRepository.GetInvoicesTotal(invoiceQuery);
|
||||
invoiceQuery.Count = count;
|
||||
invoiceQuery.Skip = skip;
|
||||
var list = await _InvoiceRepository.GetInvoices(invoiceQuery);
|
||||
|
@ -468,6 +468,7 @@ namespace BTCPayServer.Controllers
|
|||
CanMarkComplete = state.CanMarkComplete()
|
||||
});
|
||||
}
|
||||
model.Total = await counting;
|
||||
return View(model);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue