X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo.ts;h=b97dfd96f259f96feeefe2c820b42a2c0ec94a60;hb=0b18f4aa80df8868bf34605423c7a298dffbb2aa;hp=68116e3096ebe556197a8469f3592697a3d8da57;hpb=d525fc399a14a8b16eaad6d4c0bc0a9c4093c3c9;p=github%2FChocobozzz%2FPeerTube.git 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 { }) } - static async searchAndPopulateAccountAndServer (options: VideosSearchQuery) { + static async searchAndPopulateAccountAndServer (options: { + search: string + start?: number + count?: number + sort?: string + startDate?: string // ISO 8601 + endDate?: string // ISO 8601 + nsfw?: boolean + categoryOneOf?: number[] + licenceOneOf?: number[] + languageOneOf?: string[] + tagsOneOf?: string[] + tagsAllOf?: string[] + durationMin?: number // seconds + durationMax?: number // seconds + }) { const whereAnd = [ ] if (options.startDate || options.endDate) {