From 3254de4433d3a448b0a3ff99161804216cd4e527 Mon Sep 17 00:00:00 2001 From: Remi REGNAULT Date: Fri, 1 Dec 2023 08:49:53 +0100 Subject: [PATCH] fix: working on code smells --- API-Project/src/gateways/recipe.gateway.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API-Project/src/gateways/recipe.gateway.ts b/API-Project/src/gateways/recipe.gateway.ts index a087d84..779f22f 100644 --- a/API-Project/src/gateways/recipe.gateway.ts +++ b/API-Project/src/gateways/recipe.gateway.ts @@ -79,7 +79,7 @@ export class RecipeGateway { client.release() - for(var key in res.rows) { + for(let key in res.rows) { const recipe = await this.getById(Number(res.rows[key].idrecipe)) if (recipe != null) { recipes.push(recipe)