aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/models/video/video.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 913d2d4a9..e58146ccf 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -149,7 +149,12 @@ const indexes: (ModelIndexesOptions & { where?: WhereOptions })[] = [
149 buildTrigramSearchIndex('video_name_trigram', 'name'), 149 buildTrigramSearchIndex('video_name_trigram', 'name'),
150 150
151 { fields: [ 'createdAt' ] }, 151 { fields: [ 'createdAt' ] },
152 { fields: [ 'publishedAt' ] }, 152 {
153 fields: [
154 { name: 'publishedAt', order: 'DESC' },
155 { name: 'id', order: 'ASC' }
156 ]
157 },
153 { fields: [ 'duration' ] }, 158 { fields: [ 'duration' ] },
154 { fields: [ 'views' ] }, 159 { fields: [ 'views' ] },
155 { fields: [ 'channelId' ] }, 160 { fields: [ 'channelId' ] },