mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-21 16:04:22 +01:00
Fix: Not able to change SpeedPolicy of a store
This commit is contained in:
@@ -538,12 +538,6 @@ public partial class UIStoresController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (store.SpeedPolicy != vm.SpeedPolicy)
|
|
||||||
{
|
|
||||||
store.SpeedPolicy = vm.SpeedPolicy;
|
|
||||||
needUpdate = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (needUpdate)
|
if (needUpdate)
|
||||||
{
|
{
|
||||||
store.SetPaymentMethodConfig(handler, derivation);
|
store.SetPaymentMethodConfig(handler, derivation);
|
||||||
@@ -599,6 +593,12 @@ public partial class UIStoresController
|
|||||||
needUpdate = true;
|
needUpdate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (store.SpeedPolicy != vm.SpeedPolicy)
|
||||||
|
{
|
||||||
|
store.SpeedPolicy = vm.SpeedPolicy;
|
||||||
|
needUpdate = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (needUpdate)
|
if (needUpdate)
|
||||||
{
|
{
|
||||||
await _storeRepo.UpdateStore(store);
|
await _storeRepo.UpdateStore(store);
|
||||||
|
|||||||
Reference in New Issue
Block a user