Fix tests build
This commit is contained in:
parent
d6aeed4359
commit
8ed4b82346
|
@ -1,6 +1,4 @@
|
||||||
import {
|
import { HttpStatusCode, VideoChapter, VideoChapterUpdate } from '@peertube/peertube-models'
|
||||||
HttpStatusCode, VideoChapterUpdate, VideoChapters
|
|
||||||
} from '@peertube/peertube-models'
|
|
||||||
import { AbstractCommand, OverrideCommandOptions } from '../shared/index.js'
|
import { AbstractCommand, OverrideCommandOptions } from '../shared/index.js'
|
||||||
|
|
||||||
export class ChaptersCommand extends AbstractCommand {
|
export class ChaptersCommand extends AbstractCommand {
|
||||||
|
@ -10,7 +8,7 @@ export class ChaptersCommand extends AbstractCommand {
|
||||||
}) {
|
}) {
|
||||||
const path = '/api/v1/videos/' + options.videoId + '/chapters'
|
const path = '/api/v1/videos/' + options.videoId + '/chapters'
|
||||||
|
|
||||||
return this.getRequestBody<VideoChapters>({
|
return this.getRequestBody<{ chapters: VideoChapter[] }>({
|
||||||
...options,
|
...options,
|
||||||
|
|
||||||
path,
|
path,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user