From ae432ff237fb0160e41fdd3f3a82f8dfb0835140 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 7 Jun 2023 10:20:39 +0200 Subject: [PATCH] Fix: Crash on migation of old instances (Fix #5051) --- BTCPayServer/Hosting/MigrationStartupTask.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/BTCPayServer/Hosting/MigrationStartupTask.cs b/BTCPayServer/Hosting/MigrationStartupTask.cs index 77f4f8e79..2018bfc8e 100644 --- a/BTCPayServer/Hosting/MigrationStartupTask.cs +++ b/BTCPayServer/Hosting/MigrationStartupTask.cs @@ -651,13 +651,6 @@ WHERE cte.""Id""=p.""Id"" settings1.TargetCurrency = app.StoreData.GetStoreBlob().DefaultCurrency; app.SetSettings(settings1); } - items = AppService.Parse(settings1.PerksTemplate); - newTemplate = AppService.SerializeTemplate(items); - if (settings1.PerksTemplate != newTemplate) - { - settings1.PerksTemplate = newTemplate; - app.SetSettings(settings1); - }; break; case PointOfSaleAppType.AppType: @@ -668,13 +661,6 @@ WHERE cte.""Id""=p.""Id"" settings2.Currency = app.StoreData.GetStoreBlob().DefaultCurrency; app.SetSettings(settings2); } - items = AppService.Parse(settings2.Template); - newTemplate = AppService.SerializeTemplate(items); - if (settings2.Template != newTemplate) - { - settings2.Template = newTemplate; - app.SetSettings(settings2); - }; break; } }