CEC-4814 - Refactor vehicle_path endpoint (#407)

This commit is contained in:
Paul Adamsen
2023-08-01 13:53:36 -04:00
committed by GitHub
parent 5716832a81
commit c118f676ee
3 changed files with 8 additions and 14 deletions

View File

@@ -112,10 +112,10 @@ export const VehicleProvider = ({ children }) => {
}
};
const getLocationsVehiclePaths = async (token, vinsParam) => {
const getLocationsVehiclePaths = async (token, param, vins) => {
try {
setBusy(true);
const result = await api.getLocationsVehiclePaths(token, vinsParam);
const result = await api.getLocationsVehiclePaths(token, param, vins);
if (result.error)
throw new Error(`Get locations vehicle paths error. ${result.message}`);
return result;