Make sure to only select accounted payments where we should (#2523)

This commit is contained in:
Nicolas Dorier
2021-05-14 16:16:19 +09:00
committed by GitHub
parent 776ded0b7e
commit c551e5cd0a
16 changed files with 48 additions and 42 deletions

View File

@@ -111,8 +111,7 @@ namespace BTCPayServer.PaymentRequest
State = state,
StateFormatted = state.ToString(),
Payments = entity
.GetPayments()
.Where(p => p.Accounted)
.GetPayments(true)
.Select(paymentEntity =>
{
var paymentData = paymentEntity.GetCryptoPaymentData();