Skip to content

Commit

Permalink
Fix assignement
Browse files Browse the repository at this point in the history
  • Loading branch information
mindstorms6 committed Aug 3, 2019
1 parent 04750ee commit 6756344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v2/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ var dorita980 = function localV2 (user, password, host, emitIntervalTime) {
cmd = {'state': command};
}
if (additionalArgs) {
cmd = {...additionalArgs, cmd};
cmd = Object.assign(cmd, additionalArgs);
}
client.publish(topic, JSON.stringify(cmd), function (e) {
if (e) return reject(e);
Expand Down

0 comments on commit 6756344

Please sign in to comment.