Update dependencies

This commit is contained in:
Jonathan Cremin 2019-06-08 07:52:57 -07:00
parent 1158db6d7e
commit 5a7e695e53
10 changed files with 864 additions and 870 deletions

View file

@ -20,7 +20,7 @@ export default async (ctx, next) => {
const userToken = await ctx.redis.get(ctx.req.headers.authorization.substr(1));
ctx.assert(userToken, 401, '{"error": {"message": "Invalid token.", "code": 606}}');
debug('Token found');
user = await models.user.findById(userToken);
user = await models.user.findByPk(userToken);
if (!user) {
login.save();
return;