Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix tests build

Chocobozzz8ed4b8234681
diff --git a/packages/server-commands/src/videos/chapters-command.ts b/packages/server-commands/src/videos/chapters-command.ts
index 8a75c7fae3..c15388c8a5 100644
--- a/packages/server-commands/src/videos/chapters-command.ts
+++ b/packages/server-commands/src/videos/chapters-command.ts
@@ -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,