mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Cann GetInvoicesTotal in parallel
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user