fix lint
This commit is contained in:
parent
0abe2dfee0
commit
c69b72e199
573 changed files with 3318 additions and 3318 deletions
|
@ -23,12 +23,12 @@ export const meta = {
|
|||
},
|
||||
|
||||
username: {
|
||||
validator: $.optional.str
|
||||
validator: $.optional.str,
|
||||
},
|
||||
|
||||
host: {
|
||||
validator: $.optional.nullable.str
|
||||
}
|
||||
validator: $.optional.nullable.str,
|
||||
},
|
||||
},
|
||||
|
||||
res: {
|
||||
|
@ -42,15 +42,15 @@ export const meta = {
|
|||
message: 'Failed to resolve remote user.',
|
||||
code: 'FAILED_TO_RESOLVE_REMOTE_USER',
|
||||
id: 'ef7b9be4-9cba-4e6f-ab41-90ed171c7d3c',
|
||||
kind: 'server' as const
|
||||
kind: 'server' as const,
|
||||
},
|
||||
|
||||
noSuchUser: {
|
||||
message: 'No such user.',
|
||||
code: 'NO_SUCH_USER',
|
||||
id: '4362f8dc-731f-4ad8-a694-be5a88922a24'
|
||||
id: '4362f8dc-731f-4ad8-a694-be5a88922a24',
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export default define(meta, async (ps, me) => {
|
||||
|
@ -64,10 +64,10 @@ export default define(meta, async (ps, me) => {
|
|||
}
|
||||
|
||||
const users = await Users.find(isAdminOrModerator ? {
|
||||
id: In(ps.userIds)
|
||||
id: In(ps.userIds),
|
||||
} : {
|
||||
id: In(ps.userIds),
|
||||
isSuspended: false
|
||||
isSuspended: false,
|
||||
});
|
||||
|
||||
// リクエストされた通りに並べ替え
|
||||
|
@ -77,7 +77,7 @@ export default define(meta, async (ps, me) => {
|
|||
}
|
||||
|
||||
return await Promise.all(_users.map(u => Users.pack(u, me, {
|
||||
detail: true
|
||||
detail: true,
|
||||
})));
|
||||
} else {
|
||||
// Lookup user
|
||||
|
@ -99,7 +99,7 @@ export default define(meta, async (ps, me) => {
|
|||
}
|
||||
|
||||
return await Users.pack(user, me, {
|
||||
detail: true
|
||||
detail: true,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue