mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-10 00:34:27 +01:00
Fix: Invoice's orderId equals to payreq id shouldn't appear part of the payreq
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user