aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-09-06 12:18:54 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-09-06 12:18:54 +0200
commitf1a0f95d3f238be986478cbcdd5d1f1f9a2fc979 (patch)
tree787c06ed60cb5b013bcf0da305e097e159c01ace /app
parentFix recipe search (diff)
downloadferdium-server-f1a0f95d3f238be986478cbcdd5d1f1f9a2fc979.tar.gz
ferdium-server-f1a0f95d3f238be986478cbcdd5d1f1f9a2fc979.tar.zst
ferdium-server-f1a0f95d3f238be986478cbcdd5d1f1f9a2fc979.zip
Add information about ferdi:custom
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/Http/RecipeController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/Http/RecipeController.js b/app/Controllers/Http/RecipeController.js
index 1905886..880f0c3 100644
--- a/app/Controllers/Http/RecipeController.js
+++ b/app/Controllers/Http/RecipeController.js
@@ -140,7 +140,7 @@ class RecipeController {
140 let results; 140 let results;
141 141
142 if (needle === 'ferdi:custom') { 142 if (needle === 'ferdi:custom') {
143 const dbResults = (await Recipe.all().fetch()).toJSON(); 143 const dbResults = (await Recipe.all()).toJSON();
144 results = dbResults.map((recipe) => ({ 144 results = dbResults.map((recipe) => ({
145 id: recipe.recipeId, 145 id: recipe.recipeId,
146 name: recipe.name, 146 name: recipe.name,