From 29a89f185a05cc17a185d4aedc2da1bd780b36fb Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 13 Sep 2024 22:58:58 +0900 Subject: [PATCH] Fix: Not able to change SpeedPolicy of a store --- .../Controllers/UIStoresController.Onchain.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BTCPayServer/Controllers/UIStoresController.Onchain.cs b/BTCPayServer/Controllers/UIStoresController.Onchain.cs index 3a2a8cdfa..c98e857de 100644 --- a/BTCPayServer/Controllers/UIStoresController.Onchain.cs +++ b/BTCPayServer/Controllers/UIStoresController.Onchain.cs @@ -538,12 +538,6 @@ public partial class UIStoresController } } - if (store.SpeedPolicy != vm.SpeedPolicy) - { - store.SpeedPolicy = vm.SpeedPolicy; - needUpdate = true; - } - if (needUpdate) { store.SetPaymentMethodConfig(handler, derivation); @@ -599,6 +593,12 @@ public partial class UIStoresController needUpdate = true; } + if (store.SpeedPolicy != vm.SpeedPolicy) + { + store.SpeedPolicy = vm.SpeedPolicy; + needUpdate = true; + } + if (needUpdate) { await _storeRepo.UpdateStore(store);