From cd19a51619f99ed4bded1de065c3a002eebf7038 Mon Sep 17 00:00:00 2001 From: Remi REGNAULT Date: Thu, 30 Nov 2023 11:24:14 +0100 Subject: [PATCH] resolving bugs and security mentionned by sonar --- API-Project/src/controllers/ingredients.controller.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/API-Project/src/controllers/ingredients.controller.ts b/API-Project/src/controllers/ingredients.controller.ts index 8945ea5..822ca95 100644 --- a/API-Project/src/controllers/ingredients.controller.ts +++ b/API-Project/src/controllers/ingredients.controller.ts @@ -51,7 +51,6 @@ IngredientsController.get('/letter/:letter', async (req, res) => { /** To get one ingredient by id */ IngredientsController.get('/:id', async (req, res) => { - console const id = Number(req.params.id); if (!Number.isInteger(id)) {