diff --git a/src/modules/device/queries/service.ts b/src/modules/device/queries/service.ts index 8c2a540..84985d1 100644 --- a/src/modules/device/queries/service.ts +++ b/src/modules/device/queries/service.ts @@ -19,9 +19,9 @@ export default abstract class QueryService { const topic = `${query.merchantName}/${query.floorName}_${query.unitNumber}-${query.deviceName}-${query.roomName}-${query.deviceType}-S-${query.towerNumber}` - // if (!['SAVY/L2_01-BL-LV-S-S-T1', 'SAVY/L2_01-L-LV-S-S-T1'].includes(topic)) { - // throw new Error('Unsupported device topic') - // } + if (!['SAVY/L2_01-BL-LV-S-S-T1', 'SAVY/L2_01-L-LV-S-S-T1'].includes(topic)) { + throw new Error('Unsupported device topic') + } if (topic === 'SAVY/L2_01-BL-LV-S-S-T1') { return {