aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-03-13 16:03:03 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-03-18 11:17:59 +0100
commit0b16f5f2202e0c0832b5e678fadd95c64b8e8789 (patch)
treebe67b2c32fb4ba3e3ab31ce1ef6793e66af1a89f /server/models/video
parente2f01c47e08d26a30ad47068d195b3d21d0df8a1 (diff)
downloadPeerTube-0b16f5f2202e0c0832b5e678fadd95c64b8e8789.tar.gz
PeerTube-0b16f5f2202e0c0832b5e678fadd95c64b8e8789.tar.zst
PeerTube-0b16f5f2202e0c0832b5e678fadd95c64b8e8789.zip
Add videos playlist exist tests
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video-playlist.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/models/video/video-playlist.ts b/server/models/video/video-playlist.ts
index aa42687cd..7dbe4ce8d 100644
--- a/server/models/video/video-playlist.ts
+++ b/server/models/video/video-playlist.ts
@@ -301,13 +301,14 @@ export class VideoPlaylistModel extends Model<VideoPlaylistModel> {
301 }) 301 })
302 } 302 }
303 303
304 static listUrlsOfForAP (accountId: number, start: number, count: number) { 304 static listPublicUrlsOfForAP (accountId: number, start: number, count: number) {
305 const query = { 305 const query = {
306 attributes: [ 'url' ], 306 attributes: [ 'url' ],
307 offset: start, 307 offset: start,
308 limit: count, 308 limit: count,
309 where: { 309 where: {
310 ownerAccountId: accountId 310 ownerAccountId: accountId,
311 privacy: VideoPlaylistPrivacy.PUBLIC
311 } 312 }
312 } 313 }
313 314