diff options
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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 | } |