const videoUpdate: VideoUpdate = {
privacy: this.highestPrivacy,
waitTranscoding: false,
- commentsEnabled: true,
- downloadEnabled: true,
channelId: this.firstStepChannelId
}
.pipe(
switchMap(res => {
return this.videoCaptionService
- .listCaptions(res.video.id)
+ .listCaptions(res.video.uuid)
.pipe(
map(result => ({ video: res.video, videoCaptions: result.data }))
)
})
}
- updateSecondStep () {
- if (this.checkForm() === false) {
- return
- }
+ async updateSecondStep () {
+ if (!await this.isFormValid()) return
this.video.patch(this.form.value)