Skip to content

Commit 0415798

Browse files
committed
fix: incorrect peripheraldevice settings object
1 parent 9cd54fe commit 0415798

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

meteor/server/publications/peripheralDeviceForDevice.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ export function convertPeripheralDeviceForGateway(
6868
const allDeviceSettingsInStudio = applyAndValidateOverrides(
6969
studio.peripheralDeviceSettings.deviceSettings
7070
).obj
71-
deviceSettings = allDeviceSettingsInStudio[peripheralDevice.studioAndConfigId.configId] ?? deviceSettings
71+
deviceSettings =
72+
allDeviceSettingsInStudio[peripheralDevice.studioAndConfigId.configId]?.options ?? deviceSettings
7273
}
7374

7475
switch (peripheralDevice.category) {
@@ -116,6 +117,8 @@ export function convertPeripheralDeviceForGateway(
116117
}
117118
}
118119

120+
console.log('got', peripheralDevice._id, deviceSettings)
121+
119122
return literal<Complete<PeripheralDeviceForDevice>>({
120123
_id: peripheralDevice._id,
121124
studioId: peripheralDevice.studioAndConfigId?.studioId,

0 commit comments

Comments
 (0)