diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-13 16:03:03 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | 0b16f5f2202e0c0832b5e678fadd95c64b8e8789 (patch) | |
tree | be67b2c32fb4ba3e3ab31ce1ef6793e66af1a89f /server/controllers/api/users | |
parent | e2f01c47e08d26a30ad47068d195b3d21d0df8a1 (diff) | |
download | PeerTube-0b16f5f2202e0c0832b5e678fadd95c64b8e8789.tar.gz PeerTube-0b16f5f2202e0c0832b5e678fadd95c64b8e8789.tar.zst PeerTube-0b16f5f2202e0c0832b5e678fadd95c64b8e8789.zip |
Add videos playlist exist tests
Diffstat (limited to 'server/controllers/api/users')
-rw-r--r-- | server/controllers/api/users/my-video-playlists.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/users/my-video-playlists.ts b/server/controllers/api/users/my-video-playlists.ts index 1ec175f64..42da02bff 100644 --- a/server/controllers/api/users/my-video-playlists.ts +++ b/server/controllers/api/users/my-video-playlists.ts | |||
@@ -22,7 +22,7 @@ export { | |||
22 | // --------------------------------------------------------------------------- | 22 | // --------------------------------------------------------------------------- |
23 | 23 | ||
24 | async function doVideosInPlaylistExist (req: express.Request, res: express.Response) { | 24 | async function doVideosInPlaylistExist (req: express.Request, res: express.Response) { |
25 | const videoIds = req.query.videoIds as number[] | 25 | const videoIds = req.query.videoIds.map(i => parseInt(i + '', 10)) |
26 | const user = res.locals.oauth.token.User as UserModel | 26 | const user = res.locals.oauth.token.User as UserModel |
27 | 27 | ||
28 | const results = await VideoPlaylistModel.listPlaylistIdsOf(user.Account.id, videoIds) | 28 | const results = await VideoPlaylistModel.listPlaylistIdsOf(user.Account.id, videoIds) |