Skip to content

Commit

Permalink
Merge pull request #4 from wildstray/master
Browse files Browse the repository at this point in the history
Fix typo that prevented power state to updates
  • Loading branch information
jamesbarnett91 authored Aug 6, 2018
2 parents 052b34e + 16a0f62 commit 1693f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/data-broadcaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function broadcastMonthlyUsageUpdate(deviceId, data) {
}

function broadcastPowerStateUpdate(deviceId, data) {
broadcast(generatePayload('powersState', deviceId, data));
broadcast(generatePayload('powerState', deviceId, data));
}

function broadcast(payload) {
Expand All @@ -40,4 +40,4 @@ module.exports = {
broadcastMonthlyUsageUpdate: broadcastMonthlyUsageUpdate,
broadcastPowerStateUpdate: broadcastPowerStateUpdate,
generatePayload: generatePayload
}
}

0 comments on commit 1693f6f

Please sign in to comment.