]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Raw query to get video ids
authorChocobozzz <me@florianbigard.com>
Fri, 14 Sep 2018 09:09:34 +0000 (11:09 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 14 Sep 2018 09:09:34 +0000 (11:09 +0200)
server/models/video/video.ts

index ef8be7c860b355e95f48a3cc2200b29fd89ee04b..23d1dedd686b07f02ee22597d4764e30af5a3359 100644 (file)
@@ -221,6 +221,7 @@ type AvailableForListIDsOptions = {
   },
   [ ScopeNames.AVAILABLE_FOR_LIST_IDS ]: (options: AvailableForListIDsOptions) => {
     const query: IFindOptions<VideoModel> = {
+      raw: true,
       attributes: [ 'id' ],
       where: {
         id: {