aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server/app/Controllers/Http/RecipeController.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal-server/app/Controllers/Http/RecipeController.js')
-rw-r--r--src/internal-server/app/Controllers/Http/RecipeController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal-server/app/Controllers/Http/RecipeController.js b/src/internal-server/app/Controllers/Http/RecipeController.js
index 7e35e6831..d7ca716bb 100644
--- a/src/internal-server/app/Controllers/Http/RecipeController.js
+++ b/src/internal-server/app/Controllers/Http/RecipeController.js
@@ -14,7 +14,7 @@ class RecipeController {
14 // List official and custom recipes 14 // List official and custom recipes
15 async list({ response }) { 15 async list({ response }) {
16 const recipesUrlFetch = await fetch(RECIPES_URL); 16 const recipesUrlFetch = await fetch(RECIPES_URL);
17 const officialRecipes = JSON.parse(await recipesUrlFetch).text(); 17 const officialRecipes = JSON.parse(await recipesUrlFetch.text());
18 const allRecipes = await Recipe.all(); 18 const allRecipes = await Recipe.all();
19 const customRecipesArray = allRecipes.rows; 19 const customRecipesArray = allRecipes.rows;
20 const customRecipes = customRecipesArray.map(recipe => ({ 20 const customRecipes = customRecipesArray.map(recipe => ({