From d511df28906f84c7d25ecb24e41515ed549ff276 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 19 Jan 2022 14:58:16 +0100 Subject: Add ability to filter my imports by target URL --- shared/server-commands/videos/imports-command.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'shared') 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 }) -- cgit v1.2.3