X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fapi%2Fusers%2Fmy-video-playlists.ts;h=d0bd9946323b16066006c87f1f91f7d69099674d;hb=51b34a11b298b466faef9c8d24beec4442d7add3;hp=735a3cbee3b01d6003ff9ba1731f7a6e3f2ad9bb;hpb=bfbd912886eba17b4aa9a40dcef2fddc685d85bf;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/api/users/my-video-playlists.ts b/server/controllers/api/users/my-video-playlists.ts index 735a3cbee..d0bd99463 100644 --- a/server/controllers/api/users/my-video-playlists.ts +++ b/server/controllers/api/users/my-video-playlists.ts @@ -2,7 +2,7 @@ import * as express from 'express' import { asyncMiddleware, authenticate } from '../../../middlewares' import { doVideosInPlaylistExistValidator } from '../../../middlewares/validators/videos/video-playlists' import { VideoPlaylistModel } from '../../../models/video/video-playlist' -import { VideoExistInPlaylist } from '../../../../shared/models/videos/playlist/video-exist-in-playlist.model' +import { VideosExistInPlaylists } from '../../../../shared/models/videos/playlist/video-exist-in-playlist.model' const myVideoPlaylistsRouter = express.Router() @@ -26,7 +26,7 @@ async function doVideosInPlaylistExist (req: express.Request, res: express.Respo const results = await VideoPlaylistModel.listPlaylistIdsOf(user.Account.id, videoIds) - const existObject: VideoExistInPlaylist = {} + const existObject: VideosExistInPlaylists = {} for (const videoId of videoIds) { existObject[videoId] = []