Fix: Not able to change SpeedPolicy of a store

This commit is contained in:
nicolas.dorier 2024-09-13 22:58:58 +09:00
parent 2f7a5c2967
commit 29a89f185a
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -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);