CEC-2291 Remote Commands (#194)
This commit is contained in:
@@ -125,7 +125,7 @@ const vehiclesAPI = {
|
||||
.then(fetchRespHandler)
|
||||
.catch(errorHandler),
|
||||
|
||||
sendCommand: async (vins, command, parameters, token) =>
|
||||
sendCommand: async (vins, command, token) =>
|
||||
fetch(`${API_ENDPOINT}/vehiclecommand`, {
|
||||
method: "POST",
|
||||
headers: Object.assign(
|
||||
@@ -134,8 +134,7 @@ const vehiclesAPI = {
|
||||
),
|
||||
body: JSON.stringify({
|
||||
vins,
|
||||
command,
|
||||
parameters,
|
||||
...command,
|
||||
}),
|
||||
})
|
||||
.then(fetchRespHandler)
|
||||
|
||||
Reference in New Issue
Block a user