diff options
author | vantezzen <properly@protonmail.com> | 2019-09-06 12:05:30 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-09-06 12:05:30 +0200 |
commit | 7450c83888ef8db891a3a0a354fb84af133498a0 (patch) | |
tree | 84696eeba4b5dd1f8c40f6337d8f03f8ed80a2dd /app | |
parent | Add eslint (diff) | |
download | ferdium-server-7450c83888ef8db891a3a0a354fb84af133498a0.tar.gz ferdium-server-7450c83888ef8db891a3a0a354fb84af133498a0.tar.zst ferdium-server-7450c83888ef8db891a3a0a354fb84af133498a0.zip |
Fix recipe download
Diffstat (limited to 'app')
-rw-r--r-- | app/Controllers/Http/RecipeController.js | 4 |
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', |