From 5a0837ffd54d66a9f0bc8e733290db63ac070c29 Mon Sep 17 00:00:00 2001 From: kytwb Date: Sat, 18 Dec 2021 00:57:00 +0100 Subject: Fix officialRecipes fetch --- src/internal-server/app/Controllers/Http/RecipeController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/internal-server') 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 { // List official and custom recipes async list({ response }) { const recipesUrlFetch = await fetch(RECIPES_URL); - const officialRecipes = JSON.parse(await recipesUrlFetch).text(); + const officialRecipes = JSON.parse(await recipesUrlFetch.text()); const allRecipes = await Recipe.all(); const customRecipesArray = allRecipes.rows; const customRecipes = customRecipesArray.map(recipe => ({ -- cgit v1.2.3-54-g00ecf