mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
Revert a change for AuthSess query
This commit is contained in:
parent
8a2bf01167
commit
055c522e6b
@ -45,7 +45,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
|||||||
|
|
||||||
// Fetch token
|
// Fetch token
|
||||||
const session = await AuthSess
|
const session = await AuthSess
|
||||||
.findOne({ 'account.token': token });
|
.findOne({ token: token });
|
||||||
|
|
||||||
if (session === null) {
|
if (session === null) {
|
||||||
return rej('session not found');
|
return rej('session not found');
|
||||||
|
Loading…
Reference in New Issue
Block a user