diff options
Diffstat (limited to 'server/models/redundancy')
-rw-r--r-- | server/models/redundancy/video-redundancy.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.ts index cbfc7f7fa..35e0cd3b1 100644 --- a/server/models/redundancy/video-redundancy.ts +++ b/server/models/redundancy/video-redundancy.ts | |||
@@ -293,6 +293,11 @@ export class VideoRedundancyModel extends Model<VideoRedundancyModel> { | |||
293 | } | 293 | } |
294 | 294 | ||
295 | return VideoFileModel.sum('size', options as any) // FIXME: typings | 295 | return VideoFileModel.sum('size', options as any) // FIXME: typings |
296 | .then(v => { | ||
297 | if (!v || isNaN(v)) return 0 | ||
298 | |||
299 | return v | ||
300 | }) | ||
296 | } | 301 | } |
297 | 302 | ||
298 | static async listLocalExpired () { | 303 | static async listLocalExpired () { |