mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 11:35:51 +01:00
Update BTCPayServer/Services/Invoices/InvoiceRepository.cs
Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
This commit is contained in:
parent
3b4d06a1e5
commit
a8cf334616
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ namespace BTCPayServer.Services.Invoices
|
|||
// OrderId is saved in 2 places: (1) the invoice table and (2) in the metadata field. We are updating both for consistency.
|
||||
invoiceData.OrderId = newOrderId;
|
||||
|
||||
if (oldOrderId != null && !newOrderId.Equals(oldOrderId, StringComparison.InvariantCulture))
|
||||
if (oldOrderId != null && (newOrderId is null || !newOrderId.Equals(oldOrderId, StringComparison.InvariantCulture)))
|
||||
{
|
||||
RemoveFromTextSearch(context, invoiceData, oldOrderId);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue