mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 22:11:48 +01:00
Fix: Not able to change SpeedPolicy of a store
This commit is contained in:
parent
2f7a5c2967
commit
29a89f185a
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue