Fix index search

pull/3888/head
Chocobozzz 2021-03-10 09:25:26 +01:00
parent 43b513660b
commit e5abb482c3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ async function searchVideoChannelsIndex (query: VideoChannelsSearchQuery, res: e
try {
logger.debug('Doing video channels search index request on %s.', url, { body })
const searchIndexResult = await doJSONRequest<ResultList<VideoChannel>>(url, { json: body })
const { body: searchIndexResult } = await doJSONRequest<ResultList<VideoChannel>>(url, { method: 'POST', json: body })
return res.json(searchIndexResult)
} catch (err) {
@ -186,7 +186,7 @@ async function searchVideosIndex (query: VideosSearchQuery, res: express.Respons
try {
logger.debug('Doing videos search index request on %s.', url, { body })
const searchIndexResult = await doJSONRequest<ResultList<Video>>(url, { json: body })
const { body: searchIndexResult } = await doJSONRequest<ResultList<Video>>(url, { method: 'POST', json: body })
return res.json(searchIndexResult)
} catch (err) {