mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Does exist
This commit is contained in:
parent
9a18a62520
commit
0f6acda116
28 changed files with 132 additions and 133 deletions
|
@ -26,7 +26,7 @@ function isVideoPlaylistTypeValid (value: any) {
|
|||
return exists(value) && VIDEO_PLAYLIST_TYPES[ value ] !== undefined
|
||||
}
|
||||
|
||||
async function isVideoPlaylistExist (id: number | string, res: express.Response, fetchType: 'summary' | 'all' = 'summary') {
|
||||
async function doesVideoPlaylistExist (id: number | string, res: express.Response, fetchType: 'summary' | 'all' = 'summary') {
|
||||
const videoPlaylist = fetchType === 'summary'
|
||||
? await VideoPlaylistModel.loadWithAccountAndChannelSummary(id, undefined)
|
||||
: await VideoPlaylistModel.loadWithAccountAndChannel(id, undefined)
|
||||
|
@ -46,7 +46,7 @@ async function isVideoPlaylistExist (id: number | string, res: express.Response,
|
|||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
isVideoPlaylistExist,
|
||||
doesVideoPlaylistExist,
|
||||
isVideoPlaylistNameValid,
|
||||
isVideoPlaylistDescriptionValid,
|
||||
isVideoPlaylistPrivacyValid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue