Skip to content

Commit

Permalink
Fixing relations
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Sep 1, 2021
1 parent 3c8fefa commit 497e998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public/lib/models/channels/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ const moduleActions: ActionTree<ChannelState, unknown> = {
origin: Channel.$devicesModuleOrigin,
data: {
control: payload.command,
device: device.key,
channel: payload.channel.key,
device: device.id,
channel: payload.channel.id,
},
})
.then((response: RpCallResponse<{ data: string }>): void => {
Expand Down
2 changes: 1 addition & 1 deletion public/lib/models/devices/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ const moduleActions: ActionTree<DeviceState, unknown> = {
origin: Device.$devicesModuleOrigin,
data: {
control: payload.command,
device: payload.device.key,
device: payload.device.id,
},
})
.then((response: RpCallResponse<{ data: string }>): void => {
Expand Down

0 comments on commit 497e998

Please sign in to comment.