From a290fbf8214c6b15ea0acde206e84d56bf93f0b9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Oct 2023 15:07:36 +0200 Subject: [PATCH] Add isLive DB index --- server/core/models/video/video.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/core/models/video/video.ts b/server/core/models/video/video.ts index 71a3f93fb..f418ee6c1 100644 --- a/server/core/models/video/video.ts +++ b/server/core/models/video/video.ts @@ -430,6 +430,12 @@ export type ForAPIOptions = { nsfw: true } }, + { + fields: [ 'isLive' ], // Most of the videos are VOD + where: { + isLive: true + } + }, { fields: [ 'remote' ], // Only index local videos where: {