diff options
-rw-r--r-- | packages/server-commands/src/videos/chapters-command.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/server-commands/src/videos/chapters-command.ts b/packages/server-commands/src/videos/chapters-command.ts index 8a75c7fae..c15388c8a 100644 --- a/packages/server-commands/src/videos/chapters-command.ts +++ b/packages/server-commands/src/videos/chapters-command.ts | |||
@@ -1,6 +1,4 @@ | |||
1 | import { | 1 | import { HttpStatusCode, VideoChapter, VideoChapterUpdate } from '@peertube/peertube-models' |
2 | HttpStatusCode, VideoChapterUpdate, VideoChapters | ||
3 | } from '@peertube/peertube-models' | ||
4 | import { AbstractCommand, OverrideCommandOptions } from '../shared/index.js' | 2 | import { AbstractCommand, OverrideCommandOptions } from '../shared/index.js' |
5 | 3 | ||
6 | export class ChaptersCommand extends AbstractCommand { | 4 | export class ChaptersCommand extends AbstractCommand { |
@@ -10,7 +8,7 @@ export class ChaptersCommand extends AbstractCommand { | |||
10 | }) { | 8 | }) { |
11 | const path = '/api/v1/videos/' + options.videoId + '/chapters' | 9 | const path = '/api/v1/videos/' + options.videoId + '/chapters' |
12 | 10 | ||
13 | return this.getRequestBody<VideoChapters>({ | 11 | return this.getRequestBody<{ chapters: VideoChapter[] }>({ |
14 | ...options, | 12 | ...options, |
15 | 13 | ||
16 | path, | 14 | path, |