mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add channelUpdatedAt list subscriptions sort
This commit is contained in:
parent
56419fd515
commit
e002b6fcd6
5 changed files with 36 additions and 26 deletions
|
@ -57,7 +57,7 @@ mySubscriptionsRouter.get('/me/subscriptions',
|
|||
setDefaultSort,
|
||||
setDefaultPagination,
|
||||
userSubscriptionListValidator,
|
||||
asyncMiddleware(getUserSubscriptions)
|
||||
asyncMiddleware(listUserSubscriptions)
|
||||
)
|
||||
|
||||
mySubscriptionsRouter.post('/me/subscriptions',
|
||||
|
@ -151,7 +151,7 @@ async function deleteUserSubscription (req: express.Request, res: express.Respon
|
|||
.end()
|
||||
}
|
||||
|
||||
async function getUserSubscriptions (req: express.Request, res: express.Response) {
|
||||
async function listUserSubscriptions (req: express.Request, res: express.Response) {
|
||||
const user = res.locals.oauth.token.User
|
||||
const actorId = user.Account.Actor.id
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue