mirror of https://github.com/Chocobozzz/PeerTube
Fix tests
parent
afe501a6cd
commit
8de589b953
|
@ -449,7 +449,9 @@ export class VideosCommand extends AbstractCommand {
|
||||||
|
|
||||||
const result = await this.sendResumableChunks({ ...options, pathUploadId, videoFilePath, size })
|
const result = await this.sendResumableChunks({ ...options, pathUploadId, videoFilePath, size })
|
||||||
|
|
||||||
await this.endResumableUpload({ ...options, pathUploadId })
|
if (result.statusCode === HttpStatusCode.OK_200) {
|
||||||
|
await this.endResumableUpload({ ...options, expectedStatus: HttpStatusCode.NO_CONTENT_204, pathUploadId })
|
||||||
|
}
|
||||||
|
|
||||||
return result.body?.video || result.body as any
|
return result.body?.video || result.body as any
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue