From f12ea885f72ace69f90546ba84cfbb2ca39ba6f2 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Tue, 27 Mar 2018 16:04:22 +0900 Subject: [PATCH] Revert a change for AuthSess query --- src/api/endpoints/auth/accept.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/endpoints/auth/accept.ts b/src/api/endpoints/auth/accept.ts index 8955738eb..4ee20a6d2 100644 --- a/src/api/endpoints/auth/accept.ts +++ b/src/api/endpoints/auth/accept.ts @@ -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');