diff --git a/server/controllers/api/search.ts b/server/controllers/api/search.ts index 317b24fe9..57357b1e8 100644 --- a/server/controllers/api/search.ts +++ b/server/controllers/api/search.ts @@ -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>(url, { json: body }) + const { body: searchIndexResult } = await doJSONRequest>(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>(url, { json: body }) + const { body: searchIndexResult } = await doJSONRequest>(url, { method: 'POST', json: body }) return res.json(searchIndexResult) } catch (err) {