mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Fix lint, tests and styling
This commit is contained in:
parent
f9c89b98f7
commit
3cac8a756f
9 changed files with 20 additions and 25 deletions
|
@ -4,8 +4,7 @@ import validator from 'validator'
|
|||
import { getAllPrivacies, omit, pick, wait } from '@peertube/peertube-core-utils'
|
||||
import {
|
||||
HttpStatusCode,
|
||||
HttpStatusCodeType,
|
||||
ResultList,
|
||||
HttpStatusCodeType, ResultList,
|
||||
UserVideoRateType,
|
||||
Video,
|
||||
VideoCreate,
|
||||
|
@ -631,10 +630,12 @@ export class VideosCommand extends AbstractCommand {
|
|||
return super.sendResumableChunks<{ video: VideoCreateResult }>(options)
|
||||
}
|
||||
|
||||
async buildResumeVideoUpload (options: Parameters<AbstractCommand['buildResumeUpload']>[0]) {
|
||||
async buildResumeVideoUpload (
|
||||
options: Parameters<AbstractCommand['buildResumeUpload']>[0]
|
||||
): Promise<VideoCreateResult> {
|
||||
const result = await super.buildResumeUpload<{ video: VideoCreateResult }>(options)
|
||||
|
||||
return result?.video || undefined
|
||||
return result?.video || result as any
|
||||
}
|
||||
|
||||
prepareVideoResumableUpload (options: Parameters<AbstractCommand['prepareResumableUpload']>[0]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue