diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-27 14:37:04 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-10-29 11:48:21 +0200 |
commit | 2760b454a761f6af3138b2fb5f34340772ab0d1e (patch) | |
tree | 2b3a2d81478f8b432eb54cce4caa5a760c494627 /shared/extra-utils/videos/videos-command.ts | |
parent | e4611b54910d8e7f2b4f8a97ee2d9cc8e1054127 (diff) | |
download | PeerTube-2760b454a761f6af3138b2fb5f34340772ab0d1e.tar.gz PeerTube-2760b454a761f6af3138b2fb5f34340772ab0d1e.tar.zst PeerTube-2760b454a761f6af3138b2fb5f34340772ab0d1e.zip |
Deprecate filter video query
Introduce include and isLocal instead
Diffstat (limited to 'shared/extra-utils/videos/videos-command.ts')
-rw-r--r-- | shared/extra-utils/videos/videos-command.ts | 10 |
1 files changed, 5 insertions, 5 deletions
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 { | |||
18 | VideoDetails, | 18 | VideoDetails, |
19 | VideoFileMetadata, | 19 | VideoFileMetadata, |
20 | VideoPrivacy, | 20 | VideoPrivacy, |
21 | VideosCommonQuery, | 21 | VideosCommonQuery |
22 | VideosWithSearchCommonQuery | ||
23 | } from '@shared/models' | 22 | } from '@shared/models' |
24 | import { buildAbsoluteFixturePath, wait } from '../miscs' | 23 | import { buildAbsoluteFixturePath, wait } from '../miscs' |
25 | import { unwrapBody } from '../requests' | 24 | import { unwrapBody } from '../requests' |
@@ -246,7 +245,7 @@ export class VideosCommand extends AbstractCommand { | |||
246 | }) | 245 | }) |
247 | } | 246 | } |
248 | 247 | ||
249 | listByAccount (options: OverrideCommandOptions & VideosWithSearchCommonQuery & { | 248 | listByAccount (options: OverrideCommandOptions & VideosCommonQuery & { |
250 | handle: string | 249 | handle: string |
251 | }) { | 250 | }) { |
252 | const { handle, search } = options | 251 | const { handle, search } = options |
@@ -262,7 +261,7 @@ export class VideosCommand extends AbstractCommand { | |||
262 | }) | 261 | }) |
263 | } | 262 | } |
264 | 263 | ||
265 | listByChannel (options: OverrideCommandOptions & VideosWithSearchCommonQuery & { | 264 | listByChannel (options: OverrideCommandOptions & VideosCommonQuery & { |
266 | handle: string | 265 | handle: string |
267 | }) { | 266 | }) { |
268 | const { handle } = options | 267 | const { handle } = options |
@@ -605,7 +604,8 @@ export class VideosCommand extends AbstractCommand { | |||
605 | 'languageOneOf', | 604 | 'languageOneOf', |
606 | 'tagsOneOf', | 605 | 'tagsOneOf', |
607 | 'tagsAllOf', | 606 | 'tagsAllOf', |
608 | 'filter', | 607 | 'isLocal', |
608 | 'include', | ||
609 | 'skipCount' | 609 | 'skipCount' |
610 | ]) | 610 | ]) |
611 | } | 611 | } |