diff --git a/packages/code-du-travail-api/src/server/routes/search/search.getSavedResult.js b/packages/code-du-travail-api/src/server/routes/search/search.getSavedResult.js index 75114df7d1..7936310b1b 100644 --- a/packages/code-du-travail-api/src/server/routes/search/search.getSavedResult.js +++ b/packages/code-du-travail-api/src/server/routes/search/search.getSavedResult.js @@ -13,11 +13,7 @@ const getSavedResult = async query => { // get ES results for a known query logger.info(`getSavedResult: ${knownQuery.title}`); const refs = await getEsReferences(knownQuery.refs); - return { - hits: { - hits: refs - } - }; + return refs; } };