chore(client): tweak ui

This commit is contained in:
syuilo 2022-06-30 20:15:14 +09:00
parent eac31eb323
commit ed41d542bb
4 changed files with 23 additions and 22 deletions

View file

@ -15,6 +15,7 @@ export const meta = {
export const paramDef = {
type: 'object',
properties: {
limit: { type: 'integer', minimum: 1, maximum: 100, default: 10 },
},
required: [],
} as const;
@ -29,7 +30,7 @@ export default define(meta, paramDef, async (ps) => {
order: {
followersCount: 'DESC',
},
take: 10,
take: ps.limit,
}),
Instances.find({
where: {
@ -38,7 +39,7 @@ export default define(meta, paramDef, async (ps) => {
order: {
followingCount: 'DESC',
},
take: 10,
take: ps.limit,
}),
Followings.count({
where: {