mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Fix hotwallet migration 2
This commit is contained in:
@@ -150,8 +150,11 @@ namespace BTCPayServer.Hosting
|
|||||||
foreach (var paymentMethod in store.GetSupportedPaymentMethods(_NetworkProvider).OfType<DerivationSchemeSettings>())
|
foreach (var paymentMethod in store.GetSupportedPaymentMethods(_NetworkProvider).OfType<DerivationSchemeSettings>())
|
||||||
{
|
{
|
||||||
paymentMethod.IsHotWallet = paymentMethod.Source == "NBXplorer";
|
paymentMethod.IsHotWallet = paymentMethod.Source == "NBXplorer";
|
||||||
paymentMethod.Source = "NBXplorerGenerated";
|
if (paymentMethod.IsHotWallet)
|
||||||
store.SetSupportedPaymentMethod(paymentMethod);
|
{
|
||||||
|
paymentMethod.Source = "NBXplorerGenerated";
|
||||||
|
store.SetSupportedPaymentMethod(paymentMethod);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await ctx.SaveChangesAsync();
|
await ctx.SaveChangesAsync();
|
||||||
|
|||||||
Reference in New Issue
Block a user