deploy: fix swagger title, change request body command
This commit is contained in:
@@ -32,7 +32,7 @@ export default abstract class CommandService {
|
||||
// Generate topicData and send to third-party service
|
||||
try {
|
||||
const topicData = `${body.merchantName}/${body.floorName}_${body.unitNumber}-${body.deviceName}-${body.roomName}-${body.deviceType}-${body.commandType}-${body.towerNumber}`
|
||||
await sendCommandToThirdParty(topicData, body.payload.AC)
|
||||
await sendCommandToThirdParty(topicData, body.payload.action)
|
||||
} catch {
|
||||
throw new Error('internal_error')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user