CEC-4702 pass token for SMS call. (#419)

This commit is contained in:
Eduard Voronkin
2023-08-17 15:08:28 -07:00
committed by GitHub
parent efc2083a64
commit 2dd2dfc932

View File

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