diff --git a/src/server/api/endpoints/users.ts b/src/server/api/endpoints/users.ts index 324375ae2d..8e83dca350 100644 --- a/src/server/api/endpoints/users.ts +++ b/src/server/api/endpoints/users.ts @@ -88,11 +88,11 @@ const sort: any = { // < https://github.com/Microsoft/TypeScript/issues/1863 export default define(meta, (ps, me) => new Promise(async (res, rej) => { const users = await User .find({ - $and: [ - state[ps.state] || state[fallback], - origin[ps.origin] || origin[fallback] - ] - }, { + $and: [ + state[ps.state] || state[fallback], + origin[ps.origin] || origin[fallback] + ] + }, { limit: ps.limit, sort: sort[ps.sort] || sort[fallback], skip: ps.offset