]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/utils/video-channels.ts
Fix video full description
[github/Chocobozzz/PeerTube.git] / server / tests / utils / video-channels.ts
index 5b436b1835efe76a4a93da425dd95f7dfae95dc2..0fb80d3312e1e036f664256b015770f80ff1e5c6 100644 (file)
@@ -20,8 +20,8 @@ function getVideoChannelsList (url: string, start: number, count: number, sort?:
             .expect('Content-Type', /json/)
 }
 
-function getAuthorVideoChannelsList (url: string, authorId: number | string) {
-  const path = '/api/v1/videos/authors/' + authorId + '/channels'
+function getAccountVideoChannelsList (url: string, accountId: number | string) {
+  const path = '/api/v1/videos/accounts/' + accountId + '/channels'
 
   return request(url)
     .get(path)
@@ -87,7 +87,7 @@ function getVideoChannel (url: string, channelId: number) {
 
 export {
   getVideoChannelsList,
-  getAuthorVideoChannelsList,
+  getAccountVideoChannelsList,
   addVideoChannel,
   updateVideoChannel,
   deleteVideoChannel,