Skip to content

Commit d78e83f

Browse files
author
lucifer
committed
fix: cookie
1 parent 05930ca commit d78e83f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middleware/passport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = async function checkAuth(ctx, next) {
2828

2929
if (db.find((q) => q.login === duser.login)) {
3030
ctx.session.user = duser;
31-
next();
31+
await next();
3232
return;
3333
}
3434
} catch (err) {

0 commit comments

Comments
 (0)