aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-14 14:15:23 +0100
committerChocobozzz <me@florianbigard.com>2022-01-14 14:15:23 +0100
commitc0d2eac3329ec4454a178a4442bdcf20c388c8ff (patch)
tree7554ccac3b1cb43605f524ba6f9770ac6c3ed30d /server/models/video
parentc9c0cc5179359b6a9fa7c46bf73df99c4f72c1fc (diff)
downloadPeerTube-c0d2eac3329ec4454a178a4442bdcf20c388c8ff.tar.gz
PeerTube-c0d2eac3329ec4454a178a4442bdcf20c388c8ff.tar.zst
PeerTube-c0d2eac3329ec4454a178a4442bdcf20c388c8ff.zip
Update server dependencies
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video.ts3
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 }