aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/Http/RecipeController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/Http/RecipeController.js b/app/Controllers/Http/RecipeController.js
index 217b05b..890b232 100644
--- a/app/Controllers/Http/RecipeController.js
+++ b/app/Controllers/Http/RecipeController.js
@@ -182,9 +182,9 @@ class RecipeController {
182 182
183 // Check if recipe exists in recipes folder 183 // Check if recipe exists in recipes folder
184 if (await Drive.exists(`${service}.tar.gz`)) { 184 if (await Drive.exists(`${service}.tar.gz`)) {
185 response.send(await Drive.get(`${service}.tar.gz`)); 185 return response.send(await Drive.get(`${service}.tar.gz`));
186 } else if (Env.get('CONNECT_WITH_FRANZ') == 'true') { // eslint-disable-line eqeqeq 186 } else if (Env.get('CONNECT_WITH_FRANZ') == 'true') { // eslint-disable-line eqeqeq
187 response.redirect(`https://api.franzinfra.com/v1/recipes/download/${service}`); 187 return response.redirect(`https://api.franzinfra.com/v1/recipes/download/${service}`);
188 } 188 }
189 return response.status(400).send({ 189 return response.status(400).send({
190 message: 'Recipe not found', 190 message: 'Recipe not found',