diff options
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 68116e309..b97dfd96f 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -851,7 +851,22 @@ export class VideoModel extends Model<VideoModel> { | |||
851 | }) | 851 | }) |
852 | } | 852 | } |
853 | 853 | ||
854 | static async searchAndPopulateAccountAndServer (options: VideosSearchQuery) { | 854 | static async searchAndPopulateAccountAndServer (options: { |
855 | search: string | ||
856 | start?: number | ||
857 | count?: number | ||
858 | sort?: string | ||
859 | startDate?: string // ISO 8601 | ||
860 | endDate?: string // ISO 8601 | ||
861 | nsfw?: boolean | ||
862 | categoryOneOf?: number[] | ||
863 | licenceOneOf?: number[] | ||
864 | languageOneOf?: string[] | ||
865 | tagsOneOf?: string[] | ||
866 | tagsAllOf?: string[] | ||
867 | durationMin?: number // seconds | ||
868 | durationMax?: number // seconds | ||
869 | }) { | ||
855 | const whereAnd = [ ] | 870 | const whereAnd = [ ] |
856 | 871 | ||
857 | if (options.startDate || options.endDate) { | 872 | if (options.startDate || options.endDate) { |