Fixing bug of uncorrectly unassigned addresses

This commit is contained in:
nicolas.dorier 2018-01-13 01:48:19 +09:00
parent 92caa98dfb
commit 4f39a8060c
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ services:
- postgres
nbxplorer:
image: nicolasdorier/nbxplorer:1.0.0.60
image: nicolasdorier/nbxplorer:1.0.0.61
ports:
- "32838:32838"
expose:

View File

@ -196,7 +196,7 @@ namespace BTCPayServer.Services.Invoices
continue;
var historical = new HistoricalAddressInvoiceData();
historical.InvoiceDataId = invoiceId;
historical.SetAddress(address.Value.DepositAddress, cryptoCode);
historical.SetAddress(address.Value.DepositAddress, address.Value.CryptoCode);
historical.UnAssigned = DateTimeOffset.UtcNow;
context.Attach(historical);
context.Entry(historical).Property(o => o.UnAssigned).IsModified = true;