remove duplicate uploadVideo.originallyPublishedAt
duplicate was appending as array to form-data
This commit is contained in:
parent
c74c9be934
commit
7f40ce5324
|
@ -350,9 +350,6 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
|
||||||
if (attributes.licence !== undefined) {
|
if (attributes.licence !== undefined) {
|
||||||
req.field('licence', attributes.licence.toString())
|
req.field('licence', attributes.licence.toString())
|
||||||
}
|
}
|
||||||
if (attributes.originallyPublishedAt !== undefined) {
|
|
||||||
req.field('originallyPublishedAt', attributes.originallyPublishedAt)
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 0; i < attributes.tags.length; i++) {
|
for (let i = 0; i < attributes.tags.length; i++) {
|
||||||
req.field('tags[' + i + ']', attributes.tags[i])
|
req.field('tags[' + i + ']', attributes.tags[i])
|
||||||
|
|
Loading…
Reference in New Issue