diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-19 09:26:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-03-19 09:26:50 +0100 |
commit | 0f6acda11681de90d38dd18669863c6e270851ee (patch) | |
tree | b3b28e00d539645f5a810202dc8afada289e7b2e /server/helpers/custom-validators/video-blacklist.ts | |
parent | 9a18a6252071cf21b18f82a24bb63078abb75bc1 (diff) | |
download | PeerTube-0f6acda11681de90d38dd18669863c6e270851ee.tar.gz PeerTube-0f6acda11681de90d38dd18669863c6e270851ee.tar.zst PeerTube-0f6acda11681de90d38dd18669863c6e270851ee.zip |
Does exist
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 | } |