From 2760b454a761f6af3138b2fb5f34340772ab0d1e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 27 Oct 2021 14:37:04 +0200 Subject: Deprecate filter video query Introduce include and isLocal instead --- shared/extra-utils/videos/videos-command.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'shared/extra-utils/videos') diff --git a/shared/extra-utils/videos/videos-command.ts b/shared/extra-utils/videos/videos-command.ts index c1a9ec806..68241f062 100644 --- a/shared/extra-utils/videos/videos-command.ts +++ b/shared/extra-utils/videos/videos-command.ts @@ -18,8 +18,7 @@ import { VideoDetails, VideoFileMetadata, VideoPrivacy, - VideosCommonQuery, - VideosWithSearchCommonQuery + VideosCommonQuery } from '@shared/models' import { buildAbsoluteFixturePath, wait } from '../miscs' import { unwrapBody } from '../requests' @@ -246,7 +245,7 @@ export class VideosCommand extends AbstractCommand { }) } - listByAccount (options: OverrideCommandOptions & VideosWithSearchCommonQuery & { + listByAccount (options: OverrideCommandOptions & VideosCommonQuery & { handle: string }) { const { handle, search } = options @@ -262,7 +261,7 @@ export class VideosCommand extends AbstractCommand { }) } - listByChannel (options: OverrideCommandOptions & VideosWithSearchCommonQuery & { + listByChannel (options: OverrideCommandOptions & VideosCommonQuery & { handle: string }) { const { handle } = options @@ -605,7 +604,8 @@ export class VideosCommand extends AbstractCommand { 'languageOneOf', 'tagsOneOf', 'tagsAllOf', - 'filter', + 'isLocal', + 'include', 'skipCount' ]) } -- cgit v1.2.3