mirror of
https://github.com/lasthead0/yandex2mqtt.git
synced 2025-08-08 09:01:00 +03:00
c
This commit is contained in:
4
app.js
4
app.js
@@ -112,7 +112,7 @@ global.mqttClient = mqtt.connect(`mqtt://${config.mqtt.host}`, {
|
|||||||
ldevice.updateState(`${message}`, instance);
|
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;
|
const [skill_id, oauth_token, user_id] = el;
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@@ -147,7 +147,7 @@ global.mqttClient = mqtt.connect(`mqtt://${config.mqtt.host}`, {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
req.end();
|
req.end();
|
||||||
|
|
||||||
resolve(true);
|
resolve(true);
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
Reference in New Issue
Block a user