Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then( function(vehicles) {
// get options object - which must include authToken and vehicleID
var options = getOptionsFromCarName(session, carName);
tjs.climateStartAsync(options)
.done(function(result) {
if (options.display_name) {
res.say(options.display_name + "'s climate system is now on.").send();
} else {
res.say("Climate system is now on.").send();
}
});
});