Update dependencies
This commit is contained in:
parent
1158db6d7e
commit
5a7e695e53
10 changed files with 864 additions and 870 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue