From: Chocobozzz Date: Fri, 14 Sep 2018 09:09:34 +0000 (+0200) Subject: Raw query to get video ids X-Git-Tag: v1.0.0-beta.14~74 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=2b62cccd75e9025fb66148bcb1feea2a458ee8e4;p=github%2FChocobozzz%2FPeerTube.git Raw query to get video ids --- 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 = { }, [ ScopeNames.AVAILABLE_FOR_LIST_IDS ]: (options: AvailableForListIDsOptions) => { const query: IFindOptions = { + raw: true, attributes: [ 'id' ], where: { id: {