aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-01 10:15:28 +0200
committerChocobozzz <me@florianbigard.com>2019-08-01 10:15:28 +0200
commit970ceac0a6bf4990b8924738591df4949491ec9b (patch)
tree444070d8409fced91971c4401e65640d6fd13cbf /shared/extra-utils/videos
parentbfbd912886eba17b4aa9a40dcef2fddc685d85bf (diff)
downloadPeerTube-970ceac0a6bf4990b8924738591df4949491ec9b.tar.gz
PeerTube-970ceac0a6bf4990b8924738591df4949491ec9b.tar.zst
PeerTube-970ceac0a6bf4990b8924738591df4949491ec9b.zip
Fix multiple server tests
Diffstat (limited to 'shared/extra-utils/videos')
-rw-r--r--shared/extra-utils/videos/videos.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index c78563232..1533f37ab 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -379,7 +379,8 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
379 req.field('licence', attributes.licence.toString()) 379 req.field('licence', attributes.licence.toString())
380 } 380 }
381 381
382 for (let i = 0; i < attributes.tags.length; i++) { 382 const tags = attributes.tags || []
383 for (let i = 0; i < tags.length; i++) {
383 req.field('tags[' + i + ']', attributes.tags[i]) 384 req.field('tags[' + i + ']', attributes.tags[i])
384 } 385 }
385 386