mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Cann GetInvoicesTotal in parallel
This commit is contained in:
@@ -448,7 +448,7 @@ namespace BTCPayServer.Controllers
|
|||||||
StatusMessage = StatusMessage
|
StatusMessage = StatusMessage
|
||||||
};
|
};
|
||||||
InvoiceQuery invoiceQuery = GetInvoiceQuery(searchTerm);
|
InvoiceQuery invoiceQuery = GetInvoiceQuery(searchTerm);
|
||||||
model.Total = await _InvoiceRepository.GetInvoicesTotal(invoiceQuery);
|
var counting = _InvoiceRepository.GetInvoicesTotal(invoiceQuery);
|
||||||
invoiceQuery.Count = count;
|
invoiceQuery.Count = count;
|
||||||
invoiceQuery.Skip = skip;
|
invoiceQuery.Skip = skip;
|
||||||
var list = await _InvoiceRepository.GetInvoices(invoiceQuery);
|
var list = await _InvoiceRepository.GetInvoices(invoiceQuery);
|
||||||
@@ -468,6 +468,7 @@ namespace BTCPayServer.Controllers
|
|||||||
CanMarkComplete = state.CanMarkComplete()
|
CanMarkComplete = state.CanMarkComplete()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
model.Total = await counting;
|
||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user