aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-25 16:22:48 +0200
committerChocobozzz <me@florianbigard.com>2018-09-25 17:49:48 +0200
commitebdb612458877465717bc669b40612fa833ff0c9 (patch)
tree4049731ee3185d2277c51916c16b36874598f161 /server/models
parent660d11e91e1643927028d2d6870a911f569b34d8 (diff)
downloadPeerTube-ebdb612458877465717bc669b40612fa833ff0c9.tar.gz
PeerTube-ebdb612458877465717bc669b40612fa833ff0c9.tar.zst
PeerTube-ebdb612458877465717bc669b40612fa833ff0c9.zip
Fix redundancy totalVideos stats
Diffstat (limited to 'server/models')
-rw-r--r--server/models/redundancy/video-redundancy.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.ts
index 970d2fe06..58c4f354c 100644
--- a/server/models/redundancy/video-redundancy.ts
+++ b/server/models/redundancy/video-redundancy.ts
@@ -286,8 +286,8 @@ export class VideoRedundancyModel extends Model<VideoRedundancyModel> {
286 raw: true, 286 raw: true,
287 attributes: [ 287 attributes: [
288 [ Sequelize.fn('COALESCE', Sequelize.fn('SUM', Sequelize.col('VideoFile.size')), '0'), 'totalUsed' ], 288 [ Sequelize.fn('COALESCE', Sequelize.fn('SUM', Sequelize.col('VideoFile.size')), '0'), 'totalUsed' ],
289 [ Sequelize.fn('COUNT', Sequelize.fn('DISTINCT', 'videoId')), 'totalVideos' ], 289 [ Sequelize.fn('COUNT', Sequelize.fn('DISTINCT', Sequelize.col('videoId'))), 'totalVideos' ],
290 [ Sequelize.fn('COUNT', 'videoFileId'), 'totalVideoFiles' ] 290 [ Sequelize.fn('COUNT', Sequelize.col('videoFileId')), 'totalVideoFiles' ]
291 ], 291 ],
292 where: { 292 where: {
293 strategy, 293 strategy,