Skip to content

Commit

Permalink
Update jeedom-api.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Jan 24, 2024
1 parent cd841ee commit efb84a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/jeedom-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ function JeedomClient(url, apikey, Plateform, myPlugin) {
this.queue = async.queue((task, callback) => {
if(task.type==='cmd') {
this._executeDeviceAction(task.ID, task.action, task.param)
.then(result => callback(null, result))
.catch(err => callback(err, null));
.then((result) => callback(null, result))
.catch((err) => callback(err, null));
} else if(task.type==='scenario') {
this._executeScenarioAction(task.ID, task.action)
.then(result => callback(null, result))
.catch(err => callback(err, null));
.then((result) => callback(null, result))
.catch((err) => callback(err, null));
}
}, ((USE_QUEUES===0)?1:USE_QUEUES));
}
Expand Down

0 comments on commit efb84a8

Please sign in to comment.