]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/server-commands/videos/imports-command.ts
Merge branch 'release/4.2.0' into develop
[github/Chocobozzz/PeerTube.git] / shared / server-commands / videos / imports-command.ts
index f63ed5d4bc3db2abe5ccee524831eaf37b3ca605..c931ac481c2e7179841a53131194c0bc45105a44 100644 (file)
@@ -56,18 +56,16 @@ export class ImportsCommand extends AbstractCommand {
 
   getMyVideoImports (options: OverrideCommandOptions & {
     sort?: string
+    targetUrl?: string
   } = {}) {
-    const { sort } = options
+    const { sort, targetUrl } = options
     const path = '/api/v1/users/me/videos/imports'
 
-    const query = {}
-    if (sort) query['sort'] = sort
-
     return this.getRequestBody<ResultList<VideoImport>>({
       ...options,
 
       path,
-      query: { sort },
+      query: { sort, targetUrl },
       implicitToken: true,
       defaultExpectedStatus: HttpStatusCode.OK_200
     })