diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/core-utils.ts | 2 | ||||
-rw-r--r-- | server/helpers/video.ts | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts index f38b82d97..3f737c1d6 100644 --- a/server/helpers/core-utils.ts +++ b/server/helpers/core-utils.ts | |||
@@ -58,7 +58,7 @@ export function parseDuration (duration: number | string): number { | |||
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||
61 | throw new Error('Duration could not be properly parsed') | 61 | throw new Error(`Duration ${duration} could not be properly parsed`) |
62 | } | 62 | } |
63 | 63 | ||
64 | export function parseBytes (value: string | number): number { | 64 | export function parseBytes (value: string | number): number { |
diff --git a/server/helpers/video.ts b/server/helpers/video.ts index f6f51a297..c90fe06c7 100644 --- a/server/helpers/video.ts +++ b/server/helpers/video.ts | |||
@@ -1,7 +1,4 @@ | |||
1 | import { CONFIG } from '../initializers' | ||
2 | import { VideoModel } from '../models/video/video' | 1 | import { VideoModel } from '../models/video/video' |
3 | import { UserRight } from '../../shared' | ||
4 | import { UserModel } from '../models/account/user' | ||
5 | 2 | ||
6 | type VideoFetchType = 'all' | 'only-video' | 'only-video-with-rights' | 'id' | 'none' | 3 | type VideoFetchType = 'all' | 'only-video' | 'only-video-with-rights' | 'id' | 'none' |
7 | 4 | ||