1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-30 15:58:19 +09:00

Merge pull request #1315 from akihikodaki/host

Revert a change for AuthSess query
This commit is contained in:
syuilo 2018-03-27 16:06:01 +09:00 committed by GitHub
commit d6e1aa78cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');