deploy: fix swagger title, change request body command

This commit is contained in:
2025-10-14 11:40:32 +07:00
parent 33eb554cf8
commit c5545ddde2
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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')
}