From f1a0f95d3f238be986478cbcdd5d1f1f9a2fc979 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Fri, 6 Sep 2019 12:18:54 +0200 Subject: Add information about ferdi:custom --- app/Controllers/Http/RecipeController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controllers') 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 { let results; if (needle === 'ferdi:custom') { - const dbResults = (await Recipe.all().fetch()).toJSON(); + const dbResults = (await Recipe.all()).toJSON(); results = dbResults.map((recipe) => ({ id: recipe.recipeId, name: recipe.name, -- cgit v1.2.3-70-g09d2