1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-25 07:36:24 +09:00

Update authenticate.ts

This commit is contained in:
syuilo 2019-04-16 01:20:28 +09:00
parent 400cdf0f26
commit 8fefb3a4c9
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -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];
}