diff options
author | kytwb <kytwb@pm.me> | 2021-12-18 00:57:00 +0100 |
---|---|---|
committer | kytwb <kytwb@pm.me> | 2021-12-18 00:57:00 +0100 |
commit | 5a0837ffd54d66a9f0bc8e733290db63ac070c29 (patch) | |
tree | 3b1e817437526122cc151842f527d5490cd03531 /src/internal-server | |
parent | Fix badge border-radius changing in Dark Mode (diff) | |
download | ferdium-app-5a0837ffd54d66a9f0bc8e733290db63ac070c29.tar.gz ferdium-app-5a0837ffd54d66a9f0bc8e733290db63ac070c29.tar.zst ferdium-app-5a0837ffd54d66a9f0bc8e733290db63ac070c29.zip |
Fix officialRecipes fetch
Diffstat (limited to 'src/internal-server')
-rw-r--r-- | src/internal-server/app/Controllers/Http/RecipeController.js | 2 |
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 => ({ |