aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-19 15:02:43 +0200
committerChocobozzz <me@florianbigard.com>2021-10-20 09:25:44 +0200
commit906f46d0849fac3e2b30b7bdd57759e189d6a35d (patch)
tree3fbe0023c046ade74995010ae21f6e2eece1ddf5 /server/controllers/api
parent4beda9e12adc7b1f3b178cecd6863ebf3cf431f1 (diff)
downloadPeerTube-906f46d0849fac3e2b30b7bdd57759e189d6a35d.tar.gz
PeerTube-906f46d0849fac3e2b30b7bdd57759e189d6a35d.tar.zst
PeerTube-906f46d0849fac3e2b30b7bdd57759e189d6a35d.zip
Split check user params tests
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/accounts.ts2
-rw-r--r--server/controllers/api/video-channel.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/accounts.ts b/server/controllers/api/accounts.ts
index 77edfa7c2..8eb880d59 100644
--- a/server/controllers/api/accounts.ts
+++ b/server/controllers/api/accounts.ts
@@ -221,7 +221,7 @@ async function listAccountFollowers (req: express.Request, res: express.Response
221 count: req.query.count, 221 count: req.query.count,
222 sort: req.query.sort, 222 sort: req.query.sort,
223 search: req.query.search, 223 search: req.query.search,
224 state: 'accepted', 224 state: 'accepted'
225 }) 225 })
226 226
227 return res.json(getFormattedObjects(resultList.data, resultList.total)) 227 return res.json(getFormattedObjects(resultList.data, resultList.total))
diff --git a/server/controllers/api/video-channel.ts b/server/controllers/api/video-channel.ts
index f370c7004..7bf7a68c9 100644
--- a/server/controllers/api/video-channel.ts
+++ b/server/controllers/api/video-channel.ts
@@ -362,7 +362,7 @@ async function listVideoChannelFollowers (req: express.Request, res: express.Res
362 count: req.query.count, 362 count: req.query.count,
363 sort: req.query.sort, 363 sort: req.query.sort,
364 search: req.query.search, 364 search: req.query.search,
365 state: 'accepted', 365 state: 'accepted'
366 }) 366 })
367 367
368 return res.json(getFormattedObjects(resultList.data, resultList.total)) 368 return res.json(getFormattedObjects(resultList.data, resultList.total))