diff options
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index dd207c787..c9ef8445d 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -152,7 +152,8 @@ function checkUserCanManageVideo (user: UserModel, video: VideoModel, right: Use | |||
152 | return true | 152 | return true |
153 | } | 153 | } |
154 | 154 | ||
155 | async function isVideoExist (id: string, res: Response, fetchType: 'all' | 'only-video' | 'id' | 'none' = 'all') { | 155 | export type VideoFetchType = 'all' | 'only-video' | 'id' | 'none' |
156 | async function isVideoExist (id: string, res: Response, fetchType: VideoFetchType = 'all') { | ||
156 | let video: VideoModel | null | 157 | let video: VideoModel | null |
157 | 158 | ||
158 | if (fetchType === 'all') { | 159 | if (fetchType === 'all') { |