aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/utils.ts3
-rw-r--r--server/models/video/video.ts3
2 files changed, 4 insertions, 2 deletions
diff --git a/server/models/utils.ts b/server/models/utils.ts
index 6a109056f..8c694d4e5 100644
--- a/server/models/utils.ts
+++ b/server/models/utils.ts
@@ -238,7 +238,8 @@ function searchAttribute (sourceField?: string, targetField?: string) {
238 238
239 return { 239 return {
240 [targetField]: { 240 [targetField]: {
241 [Op.iLike]: `%${sourceField}%` 241 // FIXME: ts error
242 [Op.iLike as any]: `%${sourceField}%`
242 } 243 }
243 } 244 }
244} 245}
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 12b937574..9111c71b0 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1488,7 +1488,8 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
1488 required: false, 1488 required: false,
1489 where: { 1489 where: {
1490 startDate: { 1490 startDate: {
1491 [Op.gte]: new Date(new Date().getTime() - (24 * 3600 * 1000) * trendingDays) 1491 // FIXME: ts error
1492 [Op.gte as any]: new Date(new Date().getTime() - (24 * 3600 * 1000) * trendingDays)
1492 } 1493 }
1493 } 1494 }
1494 } 1495 }