From 34caef7fc0710623c6894549423813d53f65b303 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 10 Dec 2020 16:38:12 +0100 Subject: Add joblog at the end of ci --- shared/extra-utils/search/videos.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shared/extra-utils/search/videos.ts') diff --git a/shared/extra-utils/search/videos.ts b/shared/extra-utils/search/videos.ts index ac65357e3..db6edbd58 100644 --- a/shared/extra-utils/search/videos.ts +++ b/shared/extra-utils/search/videos.ts @@ -5,10 +5,10 @@ import { VideosSearchQuery } from '../../models/search' import { immutableAssign } from '../miscs/miscs' import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' -function searchVideo (url: string, search: string) { +function searchVideo (url: string, search: string, sort = '-publishedAt') { const path = '/api/v1/search/videos' - const query = { sort: '-publishedAt', search: search } + const query = { sort, search: search } const req = request(url) .get(path) .query(query) -- cgit v1.2.3