aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/tag.ts2
-rw-r--r--server/models/video/video.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/tag.ts b/server/models/video/tag.ts
index c1eebe27f..61dfb224d 100644
--- a/server/models/video/tag.ts
+++ b/server/models/video/tag.ts
@@ -18,7 +18,7 @@ import { VideoTagModel } from './video-tag'
18 }, 18 },
19 { 19 {
20 name: 'tag_lower_name', 20 name: 'tag_lower_name',
21 fields: [ fn('lower', col('name')) ] as any // FIXME: typings 21 fields: [ fn('lower', col('name')) ]
22 } 22 }
23 ] 23 ]
24}) 24})
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index a62ae2f23..b5c46c86c 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -864,7 +864,7 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
864 distinct: true, 864 distinct: true,
865 offset: start, 865 offset: start,
866 limit: count, 866 limit: count,
867 order: getVideoSort('-createdAt', [ 'Tags', 'name', 'ASC' ] as any), // FIXME: sequelize typings 867 order: getVideoSort('-createdAt', [ 'Tags', 'name', 'ASC' ]),
868 where: { 868 where: {
869 id: { 869 id: {
870 [Op.in]: Sequelize.literal('(' + rawQuery + ')') 870 [Op.in]: Sequelize.literal('(' + rawQuery + ')')