Fix tests build

This commit is contained in:
Chocobozzz 2023-08-28 16:30:21 +02:00
parent d6aeed4359
commit 8ed4b82346
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View File

@ -1,6 +1,4 @@
import {
HttpStatusCode, VideoChapterUpdate, VideoChapters
} from '@peertube/peertube-models'
import { HttpStatusCode, VideoChapter, VideoChapterUpdate } from '@peertube/peertube-models'
import { AbstractCommand, OverrideCommandOptions } from '../shared/index.js'
export class ChaptersCommand extends AbstractCommand {
@ -10,7 +8,7 @@ export class ChaptersCommand extends AbstractCommand {
}) {
const path = '/api/v1/videos/' + options.videoId + '/chapters'
return this.getRequestBody<VideoChapters>({
return this.getRequestBody<{ chapters: VideoChapter[] }>({
...options,
path,