diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/video-playlist.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/controllers/api/video-playlist.ts b/server/controllers/api/video-playlist.ts index 87a6f6bbe..78cbd9cff 100644 --- a/server/controllers/api/video-playlist.ts +++ b/server/controllers/api/video-playlist.ts | |||
@@ -5,6 +5,7 @@ import { scheduleRefreshIfNeeded } from '@server/lib/activitypub/playlists' | |||
5 | import { Hooks } from '@server/lib/plugins/hooks' | 5 | import { Hooks } from '@server/lib/plugins/hooks' |
6 | import { getServerActor } from '@server/models/application/application' | 6 | import { getServerActor } from '@server/models/application/application' |
7 | import { MVideoPlaylistFull, MVideoPlaylistThumbnail, MVideoThumbnail } from '@server/types/models' | 7 | import { MVideoPlaylistFull, MVideoPlaylistThumbnail, MVideoThumbnail } from '@server/types/models' |
8 | import { VideoPlaylistCreateResult, VideoPlaylistElementCreateResult } from '@shared/models' | ||
8 | import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' | 9 | import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' |
9 | import { VideoPlaylistCreate } from '../../../shared/models/videos/playlist/video-playlist-create.model' | 10 | import { VideoPlaylistCreate } from '../../../shared/models/videos/playlist/video-playlist-create.model' |
10 | import { VideoPlaylistElementCreate } from '../../../shared/models/videos/playlist/video-playlist-element-create.model' | 11 | import { VideoPlaylistElementCreate } from '../../../shared/models/videos/playlist/video-playlist-element-create.model' |
@@ -202,7 +203,7 @@ async function addVideoPlaylist (req: express.Request, res: express.Response) { | |||
202 | id: videoPlaylistCreated.id, | 203 | id: videoPlaylistCreated.id, |
203 | shortUUID: uuidToShort(videoPlaylistCreated.uuid), | 204 | shortUUID: uuidToShort(videoPlaylistCreated.uuid), |
204 | uuid: videoPlaylistCreated.uuid | 205 | uuid: videoPlaylistCreated.uuid |
205 | } | 206 | } as VideoPlaylistCreateResult |
206 | }) | 207 | }) |
207 | } | 208 | } |
208 | 209 | ||
@@ -338,8 +339,8 @@ async function addVideoInPlaylist (req: express.Request, res: express.Response) | |||
338 | return res.json({ | 339 | return res.json({ |
339 | videoPlaylistElement: { | 340 | videoPlaylistElement: { |
340 | id: playlistElement.id | 341 | id: playlistElement.id |
341 | } | 342 | } as VideoPlaylistElementCreateResult |
342 | }).end() | 343 | }) |
343 | } | 344 | } |
344 | 345 | ||
345 | async function updateVideoPlaylistElement (req: express.Request, res: express.Response) { | 346 | async function updateVideoPlaylistElement (req: express.Request, res: express.Response) { |