Fix hotwallet migration 2

This commit is contained in:
nicolas.dorier
2021-08-10 12:13:00 +09:00
parent fa96deb1de
commit bc4945c584

View File

@@ -150,10 +150,13 @@ 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";
if (paymentMethod.IsHotWallet)
{
paymentMethod.Source = "NBXplorerGenerated"; paymentMethod.Source = "NBXplorerGenerated";
store.SetSupportedPaymentMethod(paymentMethod); store.SetSupportedPaymentMethod(paymentMethod);
} }
} }
}
await ctx.SaveChangesAsync(); await ctx.SaveChangesAsync();
} }