Skip to content
Snippets Groups Projects
Unverified Commit d6e1aa78 authored by syuilo's avatar syuilo Committed by GitHub
Browse files

Merge pull request #1315 from akihikodaki/host

Revert a change for AuthSess query
parents 54eab439 f12ea885
No related merge requests found
......@@ -45,7 +45,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
// Fetch token
const session = await AuthSess
.findOne({ 'account.token': token });
.findOne({ token: token });
if (session === null) {
return rej('session not found');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment