diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-08 15:51:38 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-08 15:55:32 +0200 |
commit | 24b9417cec5cc785a57b2fe169a1ae88b88801a4 (patch) | |
tree | 42adf8fb4355c96fe2585ebd6312563e8182d682 /server/controllers/api/users/index.ts | |
parent | 791645e620fb98c6e7c32271d91d91ff7e41b892 (diff) | |
download | PeerTube-24b9417cec5cc785a57b2fe169a1ae88b88801a4.tar.gz PeerTube-24b9417cec5cc785a57b2fe169a1ae88b88801a4.tar.zst PeerTube-24b9417cec5cc785a57b2fe169a1ae88b88801a4.zip |
Add users search filter
Diffstat (limited to 'server/controllers/api/users/index.ts')
-rw-r--r-- | server/controllers/api/users/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index 0b0081520..4f8137c03 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts | |||
@@ -238,7 +238,7 @@ async function autocompleteUsers (req: express.Request, res: express.Response, n | |||
238 | } | 238 | } |
239 | 239 | ||
240 | async function listUsers (req: express.Request, res: express.Response, next: express.NextFunction) { | 240 | async function listUsers (req: express.Request, res: express.Response, next: express.NextFunction) { |
241 | const resultList = await UserModel.listForApi(req.query.start, req.query.count, req.query.sort) | 241 | const resultList = await UserModel.listForApi(req.query.start, req.query.count, req.query.sort, req.query.search) |
242 | 242 | ||
243 | return res.json(getFormattedObjects(resultList.data, resultList.total)) | 243 | return res.json(getFormattedObjects(resultList.data, resultList.total)) |
244 | } | 244 | } |