Prevent exception when notification array not specified

This commit is contained in:
Dmitry Lipatov
2021-11-03 00:51:33 +03:00
parent af60d3ced3
commit 3f23061374

1
app.js
View File

@@ -20,6 +20,7 @@ const passport = require('passport');
const mqtt = require('mqtt');
/* */
const config = require('./config');
config.notification= config.notification||[];
const Device = require('./device');
/* */