]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/extra-utils/videos/playlists-command.ts
Merge branch 'release/4.0.0' into develop
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / videos / playlists-command.ts
index 75c8f2433c326e48831ea7c061f2221d7f222561..ce23900d39bd0590e3977fdf5e6e3e4abce6b1b3 100644 (file)
@@ -1,7 +1,8 @@
-import { omit, pick } from 'lodash'
-import { HttpStatusCode } from '@shared/core-utils'
+import { omit } from 'lodash'
+import { pick } from '@shared/core-utils'
 import {
   BooleanBothQuery,
+  HttpStatusCode,
   ResultList,
   VideoExistInPlaylist,
   VideoPlaylist,
@@ -184,7 +185,7 @@ export class PlaylistsCommand extends AbstractCommand {
     const attributes = {
       ...options.attributes,
 
-      videoId: await this.server.videosCommand.getId({ ...options, uuid: options.attributes.videoId })
+      videoId: await this.server.videos.getId({ ...options, uuid: options.attributes.videoId })
     }
 
     const path = '/api/v1/video-playlists/' + options.playlistId + '/videos'