aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands/videos/imports-command.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-10 11:51:13 +0200
committerChocobozzz <me@florianbigard.com>2022-08-10 14:32:00 +0200
commita3b472a12ec6e57dbe2f650419f8064864686eab (patch)
treef36559488e34493c029b686772e986902150a647 /shared/server-commands/videos/imports-command.ts
parent0567049a9819d67070aa6d548a75a7e632a4aaa4 (diff)
downloadPeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.tar.gz
PeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.tar.zst
PeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.zip
Add ability to list imports of a channel sync
Diffstat (limited to 'shared/server-commands/videos/imports-command.ts')
-rw-r--r--shared/server-commands/videos/imports-command.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/shared/server-commands/videos/imports-command.ts b/shared/server-commands/videos/imports-command.ts
index c931ac481..07d810ec1 100644
--- a/shared/server-commands/videos/imports-command.ts
+++ b/shared/server-commands/videos/imports-command.ts
@@ -57,15 +57,17 @@ export class ImportsCommand extends AbstractCommand {
57 getMyVideoImports (options: OverrideCommandOptions & { 57 getMyVideoImports (options: OverrideCommandOptions & {
58 sort?: string 58 sort?: string
59 targetUrl?: string 59 targetUrl?: string
60 videoChannelSyncId?: number
61 search?: string
60 } = {}) { 62 } = {}) {
61 const { sort, targetUrl } = options 63 const { sort, targetUrl, videoChannelSyncId, search } = options
62 const path = '/api/v1/users/me/videos/imports' 64 const path = '/api/v1/users/me/videos/imports'
63 65
64 return this.getRequestBody<ResultList<VideoImport>>({ 66 return this.getRequestBody<ResultList<VideoImport>>({
65 ...options, 67 ...options,
66 68
67 path, 69 path,
68 query: { sort, targetUrl }, 70 query: { sort, targetUrl, videoChannelSyncId, search },
69 implicitToken: true, 71 implicitToken: true,
70 defaultExpectedStatus: HttpStatusCode.OK_200 72 defaultExpectedStatus: HttpStatusCode.OK_200
71 }) 73 })