diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-31 15:57:32 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-08-01 09:11:04 +0200 |
commit | bfbd912886eba17b4aa9a40dcef2fddc685d85bf (patch) | |
tree | 85e0f22980210a8ccd0888eb5e1790b152074677 /server/controllers/api/users | |
parent | 85394ba22a07bde1dfccebf3f591a5d6dbe9df56 (diff) | |
download | PeerTube-bfbd912886eba17b4aa9a40dcef2fddc685d85bf.tar.gz PeerTube-bfbd912886eba17b4aa9a40dcef2fddc685d85bf.tar.zst PeerTube-bfbd912886eba17b4aa9a40dcef2fddc685d85bf.zip |
Fix broken playlist api
Diffstat (limited to 'server/controllers/api/users')
-rw-r--r-- | server/controllers/api/users/my-video-playlists.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/api/users/my-video-playlists.ts b/server/controllers/api/users/my-video-playlists.ts index 15e92f4f3..735a3cbee 100644 --- a/server/controllers/api/users/my-video-playlists.ts +++ b/server/controllers/api/users/my-video-playlists.ts | |||
@@ -35,6 +35,7 @@ async function doVideosInPlaylistExist (req: express.Request, res: express.Respo | |||
35 | for (const result of results) { | 35 | for (const result of results) { |
36 | for (const element of result.VideoPlaylistElements) { | 36 | for (const element of result.VideoPlaylistElements) { |
37 | existObject[element.videoId].push({ | 37 | existObject[element.videoId].push({ |
38 | playlistElementId: element.id, | ||
38 | playlistId: result.id, | 39 | playlistId: result.id, |
39 | startTimestamp: element.startTimestamp, | 40 | startTimestamp: element.startTimestamp, |
40 | stopTimestamp: element.stopTimestamp | 41 | stopTimestamp: element.stopTimestamp |