From e2b9fc10127628d3ef86ca9bcd9317e77a3ef991 Mon Sep 17 00:00:00 2001 From: Apher Date: Wed, 1 Jul 2026 18:24:42 +0000 Subject: [PATCH] Fix typo and debug --- src/controllers/intent.controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/intent.controller.js b/src/controllers/intent.controller.js index c140aaa..4bdf317 100644 --- a/src/controllers/intent.controller.js +++ b/src/controllers/intent.controller.js @@ -37,12 +37,14 @@ exports.getIntentCommand = async (req, res) => { const intents = await Intent.findAll(); const intent = intents.find(intent => intent.description === text); + print(intent, config.DEVICE_ID); + if (intent) { const commandId = await redis.client.xAdd( 'communication', '*', { - device_id: device_id, + device_id: config.DEVICE_ID, command: intent.command, processed_at: new Date().toISOString(), source: config.DEVICE_ID,