CEC-4541: Force Config push (#355)
This commit is contained in:
committed by
GitHub
parent
f2377d9ed7
commit
a5f32151b2
@@ -200,12 +200,12 @@ export const VehicleProvider = ({ children }) => {
|
||||
}
|
||||
};
|
||||
|
||||
const uploadConfig = async (vin, token) => {
|
||||
const uploadConfig = async (vin, forced, token) => {
|
||||
try {
|
||||
setBusy(true);
|
||||
validateVIN(vin);
|
||||
|
||||
const result = await api.updateConfig(vin, token);
|
||||
const result = await api.updateConfig(vin, forced, token);
|
||||
if (result.error)
|
||||
throw new Error(`Update vehicle error. ${result.message}`);
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user