diff options
author | Aditya Mangalampalli <aditya.mangalampalli@gmail.com> | 2022-04-15 02:00:25 -0700 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-16 21:57:57 +0530 |
commit | 210131ca184c3aa043371857c022aa1aa149efbf (patch) | |
tree | 6bc4e10a1540e55a66146c099bc468a12287425e /src/internal-server/app/Controllers/Http/RecipeController.js | |
parent | Update submodule url to ferdium-recipes (#1) (diff) | |
download | ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.gz ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.zst ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.zip |
Matched casing for almost all replacements
Diffstat (limited to 'src/internal-server/app/Controllers/Http/RecipeController.js')
-rw-r--r-- | src/internal-server/app/Controllers/Http/RecipeController.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/internal-server/app/Controllers/Http/RecipeController.js b/src/internal-server/app/Controllers/Http/RecipeController.js index 37a62e2fa..474ffadb4 100644 --- a/src/internal-server/app/Controllers/Http/RecipeController.js +++ b/src/internal-server/app/Controllers/Http/RecipeController.js | |||
@@ -4,11 +4,11 @@ const { validateAll } = use('Validator'); | |||
4 | const Env = use('Env'); | 4 | const Env = use('Env'); |
5 | 5 | ||
6 | const fetch = require('node-fetch'); | 6 | const fetch = require('node-fetch'); |
7 | const debug = require('debug')('Ferdi:internalServer:RecipeController'); | 7 | const debug = require('debug')('Ferdium:internalServer:RecipeController'); |
8 | const { LIVE_FERDI_API } = require('../../../../config'); | 8 | const { LIVE_FERDIUM_API } = require('../../../../config'); |
9 | const { API_VERSION } = require('../../../../environment-remote'); | 9 | const { API_VERSION } = require('../../../../environment-remote'); |
10 | 10 | ||
11 | const RECIPES_URL = `${LIVE_FERDI_API}/${API_VERSION}/recipes`; | 11 | const RECIPES_URL = `${LIVE_FERDIUM_API}/${API_VERSION}/recipes`; |
12 | 12 | ||
13 | class RecipeController { | 13 | class RecipeController { |
14 | // List official and custom recipes | 14 | // List official and custom recipes |
@@ -47,7 +47,7 @@ class RecipeController { | |||
47 | // Get results | 47 | // Get results |
48 | let results; | 48 | let results; |
49 | 49 | ||
50 | if (needle === 'ferdi:custom') { | 50 | if (needle === 'ferdium:custom') { |
51 | const allRecipes = await Recipe.all(); | 51 | const allRecipes = await Recipe.all(); |
52 | const dbResults = allRecipes.toJSON(); | 52 | const dbResults = allRecipes.toJSON(); |
53 | results = dbResults.map(recipe => ({ | 53 | results = dbResults.map(recipe => ({ |