Revert a change for AuthSess query

This commit is contained in:
Akihiko Odaki 2018-03-27 16:04:22 +09:00
parent 8a2bf01167
commit 055c522e6b

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