const error fix

This commit is contained in:
Evgenii Abramov
2021-05-17 01:05:21 +03:00
parent 98e2a7ca1d
commit 38c51ef047

View File

@@ -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 {