Fix multiple server tests

This commit is contained in:
Chocobozzz
2019-08-01 10:15:28 +02:00
parent bfbd912886
commit 970ceac0a6
9 changed files with 118 additions and 35 deletions

View File

@@ -379,7 +379,8 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
req.field('licence', attributes.licence.toString())
}
for (let i = 0; i < attributes.tags.length; i++) {
const tags = attributes.tags || []
for (let i = 0; i < tags.length; i++) {
req.field('tags[' + i + ']', attributes.tags[i])
}