Fix hotwallet migration

This commit is contained in:
nicolas.dorier
2021-08-10 12:07:13 +09:00
parent a27217dc62
commit fa96deb1de
2 changed files with 4 additions and 0 deletions

View File

@@ -151,6 +151,7 @@ namespace BTCPayServer.Hosting
{ {
paymentMethod.IsHotWallet = paymentMethod.Source == "NBXplorer"; paymentMethod.IsHotWallet = paymentMethod.Source == "NBXplorer";
paymentMethod.Source = "NBXplorerGenerated"; paymentMethod.Source = "NBXplorerGenerated";
store.SetSupportedPaymentMethod(paymentMethod);
} }
} }
await ctx.SaveChangesAsync(); await ctx.SaveChangesAsync();

View File

@@ -1,7 +1,10 @@
using Newtonsoft.Json;
namespace BTCPayServer.Services namespace BTCPayServer.Services
{ {
public class MigrationSettings public class MigrationSettings
{ {
[JsonProperty("MigrateHotwalletProperty2")]
public bool MigrateHotwalletProperty { get; set; } public bool MigrateHotwalletProperty { get; set; }
public bool MigrateU2FToFIDO2{ get; set; } public bool MigrateU2FToFIDO2{ get; set; }
public bool UnreachableStoreCheck { get; set; } public bool UnreachableStoreCheck { get; set; }