mirror of
https://github.com/hardillb/node-red-alexa-home-skill-web.git
synced 2026-01-03 19:23:18 +01:00
Added extra topics to superuser
This commit is contained in:
2
index.js
2
index.js
@@ -98,7 +98,7 @@ Account.findOne({username: mqtt_user}, function(error, account){
|
||||
Account.register(new Account({username: mqtt_user, email: '', mqttPass: '', superuser: 1}),
|
||||
mqtt_password, function(err, account){
|
||||
|
||||
var topics = new Topics({topics: [account.username+'/#']});
|
||||
var topics = new Topics({topics: ['command/' +account.username+'/#', 'presence/' + account.username + '/#']});
|
||||
topics.save(function(err){
|
||||
if (!err){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user