mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 18:06:08 +01:00
Fix: Invoice's orderId equals to payreq id shouldn't appear part of the payreq
This commit is contained in:
parent
c0125b83d1
commit
9e73260230
1 changed files with 3 additions and 1 deletions
|
@ -133,7 +133,9 @@ namespace BTCPayServer.Services.PaymentRequests
|
|||
}
|
||||
|
||||
invoiceQuery.OrderId = new[] { GetOrderIdForPaymentRequest(paymentRequestId) };
|
||||
return await _InvoiceRepository.GetInvoices(invoiceQuery);
|
||||
return (await _InvoiceRepository.GetInvoices(invoiceQuery))
|
||||
.Where(i => i.InternalTags.Contains(GetInternalTag(paymentRequestId)))
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
public static string GetOrderIdForPaymentRequest(string paymentRequestId)
|
||||
|
|
Loading…
Add table
Reference in a new issue