diff options
author | Chocobozzz <me@florianbigard.com> | 2019-01-15 09:45:54 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-01-15 09:45:54 +0100 |
commit | 44b9c0ba31c4a97e3d874f33226ad935c3a90dd5 (patch) | |
tree | cb0b5e55ed3f8bafa439f233f43aca5c71a44515 /server/models/redundancy/video-redundancy.ts | |
parent | 3195cd1c118f5e020ab7e635d5a3dcdad2108b1a (diff) | |
download | PeerTube-44b9c0ba31c4a97e3d874f33226ad935c3a90dd5.tar.gz PeerTube-44b9c0ba31c4a97e3d874f33226ad935c3a90dd5.tar.zst PeerTube-44b9c0ba31c4a97e3d874f33226ad935c3a90dd5.zip |
Add totalLocalVideoFilesSize in stats
Diffstat (limited to 'server/models/redundancy/video-redundancy.ts')
-rw-r--r-- | server/models/redundancy/video-redundancy.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.ts index 8b6cd146a..8f2ef2d9a 100644 --- a/server/models/redundancy/video-redundancy.ts +++ b/server/models/redundancy/video-redundancy.ts | |||
@@ -395,7 +395,7 @@ export class VideoRedundancyModel extends Model<VideoRedundancyModel> { | |||
395 | ] | 395 | ] |
396 | } | 396 | } |
397 | 397 | ||
398 | return VideoRedundancyModel.find(query as any) // FIXME: typings | 398 | return VideoRedundancyModel.findOne(query as any) // FIXME: typings |
399 | .then((r: any) => ({ | 399 | .then((r: any) => ({ |
400 | totalUsed: parseInt(r.totalUsed.toString(), 10), | 400 | totalUsed: parseInt(r.totalUsed.toString(), 10), |
401 | totalVideos: r.totalVideos, | 401 | totalVideos: r.totalVideos, |