Fix typo and debug
This commit is contained in:
parent
4c0d5b13d1
commit
e2b9fc1012
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user