mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-28 02:14:23 +01:00
Refactor the InvoiceAddresses table (#6232)
This commit is contained in:
@@ -73,7 +73,7 @@ namespace BTCPayServer.Data
|
||||
entity.Status = state.Status;
|
||||
if (invoiceData.AddressInvoices != null)
|
||||
{
|
||||
entity.AvailableAddressHashes = invoiceData.AddressInvoices.Select(a => a.GetAddress() + a.GetPaymentMethodId()).ToHashSet();
|
||||
entity.Addresses = invoiceData.AddressInvoices.Select(a => (PaymentMethodId.Parse(a.PaymentMethodId), a.Address)).ToHashSet();
|
||||
}
|
||||
if (invoiceData.Refunds != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user