summaryrefslogtreecommitdiff
path: root/src/api/endpoints/auth
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/auth')
-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');