Fix: Todo Multi refresh ...

fix some promises problem
This commit is contained in:
Paolo Arena
2019-02-14 19:01:41 +01:00
parent 0b4ac6391d
commit f6fa45a9e9
13 changed files with 191 additions and 121 deletions

View File

@@ -7,9 +7,7 @@ const tools = require('../tools/general');
var authenticate = (req, res, next) => {
var token = req.header('x-auth');
const useragent = req.get('User-Agent');
const access = 'auth ' + useragent;
const access = 'auth';
User.findByToken(token, access).then((user) => {
if (!user) {