Fix hotwallet migration 2

This commit is contained in:
nicolas.dorier 2021-08-10 12:13:00 +09:00
parent fa96deb1de
commit bc4945c584
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -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();