summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-03-27 16:06:01 +0900
committerGitHub <noreply@github.com>2018-03-27 16:06:01 +0900
commitd6e1aa78cd2a829bcc026e3004e60e57dd1307ee (patch)
tree35e167ea69f60ce8e0fb6b631f1eaf9e76def824 /src/api
parentMerge pull request #1314 from akihikodaki/host (diff)
parentRevert a change for AuthSess query (diff)
downloadsharkey-d6e1aa78cd2a829bcc026e3004e60e57dd1307ee.tar.gz
sharkey-d6e1aa78cd2a829bcc026e3004e60e57dd1307ee.tar.bz2
sharkey-d6e1aa78cd2a829bcc026e3004e60e57dd1307ee.zip
Merge pull request #1315 from akihikodaki/host
Revert a change for AuthSess query
Diffstat (limited to 'src/api')
-rw-r--r--src/api/endpoints/auth/accept.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/auth/accept.ts b/src/api/endpoints/auth/accept.ts
index 8955738ebf..4ee20a6d25 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');