Revert "admin/role/userでuseridが指定できるように (#90)"
This reverts commit c492d450e9
.
This commit is contained in:
parent
760bcf26a0
commit
eca41ca472
|
@ -28,7 +28,6 @@ export const paramDef = {
|
||||||
roleId: { type: 'string', format: 'misskey:id' },
|
roleId: { type: 'string', format: 'misskey:id' },
|
||||||
sinceId: { type: 'string', format: 'misskey:id' },
|
sinceId: { type: 'string', format: 'misskey:id' },
|
||||||
untilId: { type: 'string', format: 'misskey:id' },
|
untilId: { type: 'string', format: 'misskey:id' },
|
||||||
userId: { type: 'string', format: 'misskey:id' },
|
|
||||||
limit: { type: 'integer', minimum: 1, maximum: 100, default: 10 },
|
limit: { type: 'integer', minimum: 1, maximum: 100, default: 10 },
|
||||||
},
|
},
|
||||||
required: ['roleId'],
|
required: ['roleId'],
|
||||||
|
@ -64,10 +63,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||||
}))
|
}))
|
||||||
.innerJoinAndSelect('assign.user', 'user');
|
.innerJoinAndSelect('assign.user', 'user');
|
||||||
|
|
||||||
if (ps.userId != null) {
|
|
||||||
query.andWhere('assign.userId = :userId', { userId: ps.userId });
|
|
||||||
}
|
|
||||||
|
|
||||||
const assigns = await query
|
const assigns = await query
|
||||||
.take(ps.limit)
|
.take(ps.limit)
|
||||||
.getMany();
|
.getMany();
|
||||||
|
|
Loading…
Reference in a new issue