mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 18:07:31 -07:00
Update authenticate.ts
This commit is contained in:
parent
c44543bd3e
commit
fdeaaf845c
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ export default async (token: string): Promise<[User | null | undefined, App | nu
|
|||
.findOne(accessToken.appId);
|
||||
|
||||
const user = await Users
|
||||
.findOne(accessToken.userId);
|
||||
.findOne({
|
||||
id: accessToken.userId // findOne(accessToken.userId) のように書かないのは後方互換性のため
|
||||
});
|
||||
|
||||
return [user, app];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue