1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Handle sort in rss

This commit is contained in:
Chocobozzz 2018-04-17 10:56:27 +02:00
parent cc1561f9f7
commit 7b87d2d514
No known key found for this signature in database
GPG key ID: 583A612D890159BE
11 changed files with 60 additions and 65 deletions

View file

@ -161,7 +161,7 @@ export {
async function getUserVideos (req: express.Request, res: express.Response, next: express.NextFunction) {
const user = res.locals.oauth.token.User as UserModel
const resultList = await VideoModel.listUserVideosForApi(user.id ,req.query.start, req.query.count, req.query.sort)
const resultList = await VideoModel.listAccountVideosForApi(user.Account.id ,req.query.start, req.query.count, req.query.sort)
return res.json(getFormattedObjects(resultList.data, resultList.total))
}