aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/search/videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/search/videos.ts')
-rw-r--r--shared/extra-utils/search/videos.ts4
1 files changed, 2 insertions, 2 deletions
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'
5import { immutableAssign } from '../miscs/miscs' 5import { immutableAssign } from '../miscs/miscs'
6import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' 6import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes'
7 7
8function searchVideo (url: string, search: string) { 8function searchVideo (url: string, search: string, sort = '-publishedAt') {
9 const path = '/api/v1/search/videos' 9 const path = '/api/v1/search/videos'
10 10
11 const query = { sort: '-publishedAt', search: search } 11 const query = { sort, search: search }
12 const req = request(url) 12 const req = request(url)
13 .get(path) 13 .get(path)
14 .query(query) 14 .query(query)