diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-03-27 16:06:01 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-27 16:06:01 +0900 |
| commit | d6e1aa78cd2a829bcc026e3004e60e57dd1307ee (patch) | |
| tree | 35e167ea69f60ce8e0fb6b631f1eaf9e76def824 /src/api | |
| parent | Merge pull request #1314 from akihikodaki/host (diff) | |
| parent | Revert a change for AuthSess query (diff) | |
| download | sharkey-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.ts | 2 |
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'); |