X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fserver-commands%2Fvideos%2Fimports-command.ts;h=c931ac481c2e7179841a53131194c0bc45105a44;hb=a2fb5fb8b1007e3ce82e707917f5d9a37374e99b;hp=f63ed5d4bc3db2abe5ccee524831eaf37b3ca605;hpb=419b520ca4434d17f3505013174e195c3a316716;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/server-commands/videos/imports-command.ts b/shared/server-commands/videos/imports-command.ts index f63ed5d4b..c931ac481 100644 --- a/shared/server-commands/videos/imports-command.ts +++ b/shared/server-commands/videos/imports-command.ts @@ -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>({ ...options, path, - query: { sort }, + query: { sort, targetUrl }, implicitToken: true, defaultExpectedStatus: HttpStatusCode.OK_200 })