From 2b62cccd75e9025fb66148bcb1feea2a458ee8e4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 14 Sep 2018 11:09:34 +0200 Subject: [PATCH] Raw query to get video ids --- server/models/video/video.ts | 1 + 1 file changed, 1 insertion(+) 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: {