diff options
Diffstat (limited to 'server/helpers/custom-validators/video-blacklist.ts')
-rw-r--r-- | server/helpers/custom-validators/video-blacklist.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/video-blacklist.ts b/server/helpers/custom-validators/video-blacklist.ts index b36b08d8b..25f908228 100644 --- a/server/helpers/custom-validators/video-blacklist.ts +++ b/server/helpers/custom-validators/video-blacklist.ts | |||
@@ -9,7 +9,7 @@ function isVideoBlacklistReasonValid (value: string) { | |||
9 | return value === null || validator.isLength(value, VIDEO_BLACKLIST_CONSTRAINTS_FIELDS.REASON) | 9 | return value === null || validator.isLength(value, VIDEO_BLACKLIST_CONSTRAINTS_FIELDS.REASON) |
10 | } | 10 | } |
11 | 11 | ||
12 | async function isVideoBlacklistExist (videoId: number, res: Response) { | 12 | async function doesVideoBlacklistExist (videoId: number, res: Response) { |
13 | const videoBlacklist = await VideoBlacklistModel.loadByVideoId(videoId) | 13 | const videoBlacklist = await VideoBlacklistModel.loadByVideoId(videoId) |
14 | 14 | ||
15 | if (videoBlacklist === null) { | 15 | if (videoBlacklist === null) { |
@@ -28,5 +28,5 @@ async function isVideoBlacklistExist (videoId: number, res: Response) { | |||
28 | 28 | ||
29 | export { | 29 | export { |
30 | isVideoBlacklistReasonValid, | 30 | isVideoBlacklistReasonValid, |
31 | isVideoBlacklistExist | 31 | doesVideoBlacklistExist |
32 | } | 32 | } |