diff options
Diffstat (limited to 'server/helpers/custom-validators/video-playlists.ts')
-rw-r--r-- | server/helpers/custom-validators/video-playlists.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/video-playlists.ts b/server/helpers/custom-validators/video-playlists.ts index e0eb423d7..c962c5532 100644 --- a/server/helpers/custom-validators/video-playlists.ts +++ b/server/helpers/custom-validators/video-playlists.ts | |||
@@ -26,7 +26,7 @@ function isVideoPlaylistTypeValid (value: any) { | |||
26 | return exists(value) && VIDEO_PLAYLIST_TYPES[ value ] !== undefined | 26 | return exists(value) && VIDEO_PLAYLIST_TYPES[ value ] !== undefined |
27 | } | 27 | } |
28 | 28 | ||
29 | async function isVideoPlaylistExist (id: number | string, res: express.Response, fetchType: 'summary' | 'all' = 'summary') { | 29 | async function doesVideoPlaylistExist (id: number | string, res: express.Response, fetchType: 'summary' | 'all' = 'summary') { |
30 | const videoPlaylist = fetchType === 'summary' | 30 | const videoPlaylist = fetchType === 'summary' |
31 | ? await VideoPlaylistModel.loadWithAccountAndChannelSummary(id, undefined) | 31 | ? await VideoPlaylistModel.loadWithAccountAndChannelSummary(id, undefined) |
32 | : await VideoPlaylistModel.loadWithAccountAndChannel(id, undefined) | 32 | : await VideoPlaylistModel.loadWithAccountAndChannel(id, undefined) |
@@ -46,7 +46,7 @@ async function isVideoPlaylistExist (id: number | string, res: express.Response, | |||
46 | // --------------------------------------------------------------------------- | 46 | // --------------------------------------------------------------------------- |
47 | 47 | ||
48 | export { | 48 | export { |
49 | isVideoPlaylistExist, | 49 | doesVideoPlaylistExist, |
50 | isVideoPlaylistNameValid, | 50 | isVideoPlaylistNameValid, |
51 | isVideoPlaylistDescriptionValid, | 51 | isVideoPlaylistDescriptionValid, |
52 | isVideoPlaylistPrivacyValid, | 52 | isVideoPlaylistPrivacyValid, |