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)