X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fextra-utils%2Fvideos%2Fplaylists-command.ts;h=ce23900d39bd0590e3977fdf5e6e3e4abce6b1b3;hb=fa66c9a601d69f6d57c956a3513e8bbed7ee9616;hp=75c8f2433c326e48831ea7c061f2221d7f222561;hpb=d23dd9fbfc4d26026352c10f81d2795ceaf2908a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/extra-utils/videos/playlists-command.ts b/shared/extra-utils/videos/playlists-command.ts index 75c8f2433..ce23900d3 100644 --- a/shared/extra-utils/videos/playlists-command.ts +++ b/shared/extra-utils/videos/playlists-command.ts @@ -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'