diff --git a/packages/code-du-travail-frontend/pages/api/themes/index.ts b/packages/code-du-travail-frontend/pages/api/themes/index.ts index b1172e170d0..cfebf6a46ef 100644 --- a/packages/code-du-travail-frontend/pages/api/themes/index.ts +++ b/packages/code-du-travail-frontend/pages/api/themes/index.ts @@ -5,12 +5,9 @@ export default async function handler( req: NextApiRequest, res: NextApiResponse ) { - console.log("API Themes", req.method); await runMiddleware(req, res); - console.log("API Themes 2 ", req.method); const controller = new ThemesController(req, res); if (req.method === "GET") { - console.log("API Themes 3 ", req.method); controller.get(); } } diff --git a/packages/code-du-travail-frontend/scripts/data/documents_data.json b/packages/code-du-travail-frontend/scripts/data/documents_data.json index f1394281dc1..8dd3e8fad39 100644 --- a/packages/code-du-travail-frontend/scripts/data/documents_data.json +++ b/packages/code-du-travail-frontend/scripts/data/documents_data.json @@ -9428,7 +9428,6 @@ "metaDescription": "Idcc 0843 : Boulangerie-pâtisserie (entreprises artisanales)", "slug": "843-boulangerie-patisserie-entreprises-artisanales", "source": "conventions_collectives", - "answers": [], "text": "IDCC 843: Convention collective nationale de la boulangerie-pâtisserie du 19 mars 1976. Etendue par arrêté du 21 juin 1978 JONC 28 juillet 1978. Boulangerie-pâtisserie (entreprises artisanales)", "contributions": true, "title_vector": [ diff --git a/packages/code-du-travail-frontend/src/api/__tests__/themes.test.ts b/packages/code-du-travail-frontend/src/api/__tests__/themes.test.ts index 48648073aec..fa1c29fc531 100644 --- a/packages/code-du-travail-frontend/src/api/__tests__/themes.test.ts +++ b/packages/code-du-travail-frontend/src/api/__tests__/themes.test.ts @@ -8,7 +8,6 @@ describe("Themes", () => { it("should return a list for /themes", async () => { const res = await request(server).get("/api/themes"); - console.log(res.body); expect(res.status).toBe(200); expect(res.body).toMatchSnapshot(); }); diff --git a/packages/code-du-travail-frontend/src/api/modules/enterprises/service/populateAgreements.ts b/packages/code-du-travail-frontend/src/api/modules/enterprises/service/populateAgreements.ts index 6c26c11202a..a0c4d0214ec 100644 --- a/packages/code-du-travail-frontend/src/api/modules/enterprises/service/populateAgreements.ts +++ b/packages/code-du-travail-frontend/src/api/modules/enterprises/service/populateAgreements.ts @@ -33,7 +33,6 @@ export const populateAgreements = async ( if (idccList.length > 0) { const body = getAgreements(idccList); - console.log("Popuplate agreements", elasticDocumentsIndex); const response = await elasticsearchClient.search( { body, index: elasticDocumentsIndex } ); diff --git a/packages/code-du-travail-frontend/src/api/modules/themes/controller.ts b/packages/code-du-travail-frontend/src/api/modules/themes/controller.ts index 75327213baa..f18b684ba07 100644 --- a/packages/code-du-travail-frontend/src/api/modules/themes/controller.ts +++ b/packages/code-du-travail-frontend/src/api/modules/themes/controller.ts @@ -12,13 +12,10 @@ export class ThemesController { } public async get() { - console.log("API Themes 11 "); try { - console.log("API Themes 12"); const response = await getAllThemes(); this.res.status(200).json(response); } catch (error) { - console.error("API Themes ERROR", error); if (error instanceof NotFoundError) { this.res.status(404).json({ message: error.message }); } else { diff --git a/packages/code-du-travail-frontend/src/api/modules/themes/service.ts b/packages/code-du-travail-frontend/src/api/modules/themes/service.ts index 6f1b4cd7b8d..97e05dafbae 100644 --- a/packages/code-du-travail-frontend/src/api/modules/themes/service.ts +++ b/packages/code-du-travail-frontend/src/api/modules/themes/service.ts @@ -7,7 +7,6 @@ import { getAllThemesQuery, getThemeBySlugQuery } from "./queries"; export const getAllThemes = async () => { const body = getAllThemesQuery(); - console.log("Get all themes from ", elasticDocumentsIndex); const response = await elasticsearchClient.search({ body, index: elasticDocumentsIndex,