mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-05 02:08:56 +09:00
Update authenticate.ts
This commit is contained in:
parent
400cdf0f26
commit
8fefb3a4c9
@ -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 New Issue
Block a user