aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server/app/Controllers/Http/RecipeController.js
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-12-04 08:52:48 -0700
committerLibravatar GitHub <noreply@github.com>2023-12-04 08:52:48 -0700
commit3fc8706007d896dcbde69c0ce924a6a5eb66aba6 (patch)
tree008bbcfc14d819cd2f744eb16607b6aa9c4ad0bf /src/internal-server/app/Controllers/Http/RecipeController.js
parentchore: project maintenance (#1466) (diff)
downloadferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.gz
ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.zst
ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.zip
refactor: implement biome (#1467)
- add `biome.json` - add `biome:check` and `biome:check:fix` commands to `package.json` - add `biome:check:fix` command to run as part of `prepare-code` command - install `@biomejs/biome` dependency - add `@npmcli/move-file` v2.0.1 to `pnpm.allowedDeprecatedVersions` - fix or comment out various reported lint issues
Diffstat (limited to 'src/internal-server/app/Controllers/Http/RecipeController.js')
-rw-r--r--src/internal-server/app/Controllers/Http/RecipeController.js8
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 3e54ab65b..48d3ce7e5 100644
--- a/src/internal-server/app/Controllers/Http/RecipeController.js
+++ b/src/internal-server/app/Controllers/Http/RecipeController.js
@@ -59,8 +59,8 @@ class RecipeController {
59 })); 59 }));
60 } else { 60 } else {
61 let remoteResults = []; 61 let remoteResults = [];
62 // eslint-disable-next-line eqeqeq 62
63 if (Env.get('CONNECT_WITH_FRANZ') == 'true') { 63 if (Env.get('CONNECT_WITH_FRANZ') === 'true') {
64 const recipesUrlFetch = await fetch( 64 const recipesUrlFetch = await fetch(
65 `${RECIPES_URL}/search?needle=${encodeURIComponent(needle)}`, 65 `${RECIPES_URL}/search?needle=${encodeURIComponent(needle)}`,
66 ); 66 );
@@ -123,8 +123,8 @@ class RecipeController {
123 if (await Drive.exists(`${service}.tar.gz`)) { 123 if (await Drive.exists(`${service}.tar.gz`)) {
124 return response.send(await Drive.get(`${service}.tar.gz`)); 124 return response.send(await Drive.get(`${service}.tar.gz`));
125 } 125 }
126 // eslint-disable-next-line eqeqeq 126
127 if (Env.get('CONNECT_WITH_FRANZ') == 'true') { 127 if (Env.get('CONNECT_WITH_FRANZ') === 'true') {
128 return response.redirect(`${RECIPES_URL}/download/${service}`); 128 return response.redirect(`${RECIPES_URL}/download/${service}`);
129 } 129 }
130 return response.status(400).send({ 130 return response.status(400).send({