mirror of
https://github.com/lasthead0/yandex2mqtt.git
synced 2025-08-06 16:27:18 +03:00
const error fix
This commit is contained in:
@@ -17,7 +17,7 @@ global.dbl = new loki('./loki.json', {
|
||||
|
||||
module.exports.find = (key, done) => {
|
||||
const ltoken = global.authl.findOne({'token': key});
|
||||
if (ltoken){
|
||||
if (ltoken) {
|
||||
const {userId, clientId} = ltoken;
|
||||
return done(null, {userId, clientId})
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user