From 7450c83888ef8db891a3a0a354fb84af133498a0 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Fri, 6 Sep 2019 12:05:30 +0200 Subject: Fix recipe download --- app/Controllers/Http/RecipeController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Controllers/Http') 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 { // Check if recipe exists in recipes folder if (await Drive.exists(`${service}.tar.gz`)) { - response.send(await Drive.get(`${service}.tar.gz`)); + return response.send(await Drive.get(`${service}.tar.gz`)); } else if (Env.get('CONNECT_WITH_FRANZ') == 'true') { // eslint-disable-line eqeqeq - response.redirect(`https://api.franzinfra.com/v1/recipes/download/${service}`); + return response.redirect(`https://api.franzinfra.com/v1/recipes/download/${service}`); } return response.status(400).send({ message: 'Recipe not found', -- cgit v1.2.3-54-g00ecf