aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/videos/videos.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-12 12:48:58 +0100
committerChocobozzz <me@florianbigard.com>2018-02-12 12:48:58 +0100
commita87d467ad76505312fe63c597ee03a66126d0492 (patch)
tree9368de15c30c59f40fb45db7f7a60efeb4a5987b /server/tests/utils/videos/videos.ts
parent3df456380a3d6c7ff39b0004a5390011739ebc8e (diff)
downloadPeerTube-a87d467ad76505312fe63c597ee03a66126d0492.tar.gz
PeerTube-a87d467ad76505312fe63c597ee03a66126d0492.tar.zst
PeerTube-a87d467ad76505312fe63c597ee03a66126d0492.zip
Fix upload from CLI script
Diffstat (limited to 'server/tests/utils/videos/videos.ts')
-rw-r--r--server/tests/utils/videos/videos.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts
index 923ca48f1..9105b5f13 100644
--- a/server/tests/utils/videos/videos.ts
+++ b/server/tests/utils/videos/videos.ts
@@ -251,10 +251,12 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
251 .field('name', attributes.name) 251 .field('name', attributes.name)
252 .field('nsfw', JSON.stringify(attributes.nsfw)) 252 .field('nsfw', JSON.stringify(attributes.nsfw))
253 .field('commentsEnabled', JSON.stringify(attributes.commentsEnabled)) 253 .field('commentsEnabled', JSON.stringify(attributes.commentsEnabled))
254 .field('description', attributes.description)
255 .field('privacy', attributes.privacy.toString()) 254 .field('privacy', attributes.privacy.toString())
256 .field('channelId', attributes.channelId) 255 .field('channelId', attributes.channelId)
257 256
257 if (attributes.description !== undefined) {
258 req.field('description', attributes.description)
259 }
258 if (attributes.language !== undefined) { 260 if (attributes.language !== undefined) {
259 req.field('language', attributes.language.toString()) 261 req.field('language', attributes.language.toString())
260 } 262 }