diff options
author | Chocobozzz <me@florianbigard.com> | 2023-08-28 16:30:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-08-28 16:42:32 +0200 |
commit | 8ed4b823468133a2ceda78a9eb7841a5562476da (patch) | |
tree | 421e58b6044505cef8ab20312dfad38495a8f759 /packages | |
parent | d6aeed435926c96c98d57a096bfd343c4a01f013 (diff) | |
download | PeerTube-8ed4b823468133a2ceda78a9eb7841a5562476da.tar.gz PeerTube-8ed4b823468133a2ceda78a9eb7841a5562476da.tar.zst PeerTube-8ed4b823468133a2ceda78a9eb7841a5562476da.zip |
Fix tests build
Diffstat (limited to 'packages')
-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, |