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) {
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) {