ActivityPub-federated video streaming platform using P2P directly in your web browser
Add index for recently added SQL query
Chocobozzz611a72ae15ff
diff --git a/server/models/video/video.ts b/server/models/video/video.tsindex 913d2d4a90..e58146ccf5 100644--- a/server/models/video/video.ts+++ b/server/models/video/video.ts@@ -149,7 +149,12 @@ const indexes: (ModelIndexesOptions & { where?: WhereOptions })[] = [buildTrigramSearchIndex('video_name_trigram', 'name'),{ fields: [ 'createdAt' ] },- { fields: [ 'publishedAt' ] },+ {+ fields: [+ { name: 'publishedAt', order: 'DESC' },+ { name: 'id', order: 'ASC' }+ ]+ },{ fields: [ 'duration' ] },{ fields: [ 'views' ] },{ fields: [ 'channelId' ] },