Skip to content

Commit

Permalink
issues# 8 Fix. Should end with payload.value
Browse files Browse the repository at this point in the history
  • Loading branch information
kakopappa committed Jan 17, 2021
1 parent 232d5e7 commit 89b7fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/contorllers/color_temperature.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ColorTemperature = (payload, callbacks) => {
const resp = callbacks.setColorTemperature(payload.deviceId, payload.value.colorTemperature);

return new Promise((resolve, reject) => {
if (payload.value.colorTemperature && resp) resolve(payload.colorTemperature);
if (payload.value.colorTemperature && resp) resolve(payload.value);
else reject(new Error('color temperature is undefined'));
});
};
Expand Down

0 comments on commit 89b7fc2

Please sign in to comment.