mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Fix hotwallet migration 2
This commit is contained in:
parent
fa96deb1de
commit
bc4945c584
1 changed files with 5 additions and 2 deletions
|
@ -150,8 +150,11 @@ namespace BTCPayServer.Hosting
|
|||
foreach (var paymentMethod in store.GetSupportedPaymentMethods(_NetworkProvider).OfType<DerivationSchemeSettings>())
|
||||
{
|
||||
paymentMethod.IsHotWallet = paymentMethod.Source == "NBXplorer";
|
||||
paymentMethod.Source = "NBXplorerGenerated";
|
||||
store.SetSupportedPaymentMethod(paymentMethod);
|
||||
if (paymentMethod.IsHotWallet)
|
||||
{
|
||||
paymentMethod.Source = "NBXplorerGenerated";
|
||||
store.SetSupportedPaymentMethod(paymentMethod);
|
||||
}
|
||||
}
|
||||
}
|
||||
await ctx.SaveChangesAsync();
|
||||
|
|
Loading…
Add table
Reference in a new issue