From 8c95429b085638be0f90a9850c19365c02dcac95 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Thu, 19 May 2022 10:56:51 +0100 Subject: [PATCH] default value for env variable --- packages/server/src/api/controllers/templates.js | 2 +- packages/server/src/environment.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/controllers/templates.js b/packages/server/src/api/controllers/templates.js index 57a175d4ff..3a1cafdf5a 100644 --- a/packages/server/src/api/controllers/templates.js +++ b/packages/server/src/api/controllers/templates.js @@ -7,7 +7,7 @@ const DEFAULT_TEMPLATES_BUCKET = "prod-budi-templates.s3-eu-west-1.amazonaws.com" exports.fetch = async function (ctx) { - let type = env.TEMPLATE_REPOSITORY || "app" + let type = env.TEMPLATE_REPOSITORY let response, error = false try { diff --git a/packages/server/src/environment.js b/packages/server/src/environment.js index fd28e4c369..4807ef5493 100644 --- a/packages/server/src/environment.js +++ b/packages/server/src/environment.js @@ -78,7 +78,7 @@ module.exports = { ALLOW_DEV_AUTOMATIONS: process.env.ALLOW_DEV_AUTOMATIONS, DISABLE_THREADING: process.env.DISABLE_THREADING, SQL_MAX_ROWS: process.env.SQL_MAX_ROWS, - TEMPLATE_REPOSITORY: process.env.TEMPLATE_REPOSITORY, + TEMPLATE_REPOSITORY: process.env.TEMPLATE_REPOSITORY || "app", _set(key, value) { process.env[key] = value module.exports[key] = value