fix lint
This commit is contained in:
parent
0abe2dfee0
commit
c69b72e199
573 changed files with 3318 additions and 3318 deletions
|
@ -28,9 +28,9 @@ export default async (token: string): Promise<[User | null | undefined, App | nu
|
|||
} else {
|
||||
const accessToken = await AccessTokens.findOne({
|
||||
where: [{
|
||||
hash: token.toLowerCase() // app
|
||||
hash: token.toLowerCase(), // app
|
||||
}, {
|
||||
token: token // miauth
|
||||
token: token, // miauth
|
||||
}],
|
||||
});
|
||||
|
||||
|
@ -44,7 +44,7 @@ export default async (token: string): Promise<[User | null | undefined, App | nu
|
|||
|
||||
const user = await Users
|
||||
.findOne({
|
||||
id: accessToken.userId // findOne(accessToken.userId) のように書かないのは後方互換性のため
|
||||
id: accessToken.userId, // findOne(accessToken.userId) のように書かないのは後方互換性のため
|
||||
});
|
||||
|
||||
if (accessToken.appId) {
|
||||
|
@ -53,7 +53,7 @@ export default async (token: string): Promise<[User | null | undefined, App | nu
|
|||
|
||||
return [user, {
|
||||
id: accessToken.id,
|
||||
permission: app.permission
|
||||
permission: app.permission,
|
||||
} as AccessToken];
|
||||
} else {
|
||||
return [user, accessToken];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue