mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix tests
This commit is contained in:
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
Block a user