mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +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
@ -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…
Reference in New Issue
Block a user