CEC-4702 pass token for SMS call. (#419)
This commit is contained in:
@@ -97,7 +97,7 @@ const SendDiagnosticCommand = ({ vin, token, classes }) => {
|
||||
} else if (currentCommand === "remote_ignition") {
|
||||
await sendDiagnosticCommand([vin], { command: currentCommand, ignition_action: ignitionState ? "on" : "off", timeout: seconds }, token);
|
||||
} else if (currentCommand === "sms") {
|
||||
const res = await smsAPI.send({ ICCID: vehicle.iccid, await: true, messageText: "remote_diagnostic" })
|
||||
const res = await smsAPI.send({ ICCID: vehicle.iccid, await: true, messageText: "remote_diagnostic" }, token)
|
||||
if (res.error) {
|
||||
setMessage(`Failed to wake up the car: ${res.error}`)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user