diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-14 11:09:34 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-14 11:09:34 +0200 |
commit | 2b62cccd75e9025fb66148bcb1feea2a458ee8e4 (patch) | |
tree | 64da4a4531c60ef91e2a7063f348b84ae1f02dbb /server/models/video/video.ts | |
parent | 3f6b6a565dc98a658ec9d8f697252788c0faa46d (diff) | |
download | PeerTube-2b62cccd75e9025fb66148bcb1feea2a458ee8e4.tar.gz PeerTube-2b62cccd75e9025fb66148bcb1feea2a458ee8e4.tar.zst PeerTube-2b62cccd75e9025fb66148bcb1feea2a458ee8e4.zip |
Raw query to get video ids
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index ef8be7c86..23d1dedd6 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -221,6 +221,7 @@ type AvailableForListIDsOptions = { | |||
221 | }, | 221 | }, |
222 | [ ScopeNames.AVAILABLE_FOR_LIST_IDS ]: (options: AvailableForListIDsOptions) => { | 222 | [ ScopeNames.AVAILABLE_FOR_LIST_IDS ]: (options: AvailableForListIDsOptions) => { |
223 | const query: IFindOptions<VideoModel> = { | 223 | const query: IFindOptions<VideoModel> = { |
224 | raw: true, | ||
224 | attributes: [ 'id' ], | 225 | attributes: [ 'id' ], |
225 | where: { | 226 | where: { |
226 | id: { | 227 | id: { |