Bug fix logical and/or boolean selector

pull/2096/head
Frank Sträter 2019-08-28 12:31:55 +02:00 committed by Chocobozzz
parent 076d3ace1e
commit b1b7f7160b
1 changed files with 2 additions and 2 deletions

View File

@ -190,8 +190,8 @@ function buildVideo (channelId: number, body: VideoImportCreate, importData: You
category: body.category || importData.category, category: body.category || importData.category,
licence: body.licence || importData.licence, licence: body.licence || importData.licence,
language: body.language || undefined, language: body.language || undefined,
commentsEnabled: body.commentsEnabled || true, commentsEnabled: body.commentsEnabled && true,
downloadEnabled: body.downloadEnabled || true, downloadEnabled: body.downloadEnabled && true,
waitTranscoding: body.waitTranscoding || false, waitTranscoding: body.waitTranscoding || false,
state: VideoState.TO_IMPORT, state: VideoState.TO_IMPORT,
nsfw: body.nsfw || importData.nsfw || false, nsfw: body.nsfw || importData.nsfw || false,