From e537003082719680eac042dc74ba2c38b910c205 Mon Sep 17 00:00:00 2001 From: Evgenii Abramov Date: Wed, 12 May 2021 22:23:44 +0300 Subject: [PATCH] c --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 0772337..76777f8 100644 --- a/app.js +++ b/app.js @@ -112,7 +112,7 @@ global.mqttClient = mqtt.connect(`mqtt://${config.mqtt.host}`, { ldevice.updateState(`${message}`, instance); /* */ - Promise.all(config.notification.map(el => { + Promise.all([].concat(config.notification).map(el => { const [skill_id, oauth_token, user_id] = el; return new Promise((resolve, reject) => { @@ -147,7 +147,7 @@ global.mqttClient = mqtt.connect(`mqtt://${config.mqtt.host}`, { })); req.end(); - + resolve(true); }); }));