diff --git a/config/custom-environment-variables.json b/config/custom-environment-variables.json index d5083856..a9c9e7dc 100644 --- a/config/custom-environment-variables.json +++ b/config/custom-environment-variables.json @@ -3,5 +3,6 @@ "jwtExpirationTime": "theSpoon_jwtExpirationTime", "AWS_ACCESS_KEY_ID": "theSpoon_AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY": "theSpoon_AWS_SECRET_ACCESS_KEY", - "companySecret": "theSpoon_companySecret" + "companySecret": "theSpoon_companySecret", + "sequelize_Database": "theSpoon_sequelize_Database" } \ No newline at end of file diff --git a/config/default.json b/config/default.json index 1056cf9f..ffb2da31 100644 --- a/config/default.json +++ b/config/default.json @@ -3,5 +3,5 @@ "jwtExpirationTime": "", "AWS_ACCESS_KEY_ID": "", "AWS_SECRET_ACCESS_KEY": "", - "sequelize_Database": "postgres://vlbganljybqkij:19f31cdd0c3704ba6f463d0236de1e224187121d17811cb950b46c29daa5ace4@ec2-54-246-100-246.eu-west-1.compute.amazonaws.com:5432/d9dfhu5citam1c?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory" + "sequelize_Database": "" } \ No newline at end of file diff --git a/jest.setup.js b/jest.setup.js index a7fd3520..c6730784 100644 --- a/jest.setup.js +++ b/jest.setup.js @@ -1 +1 @@ -jest.setTimeout(100000); // in milliseconds \ No newline at end of file +jest.setTimeout(1000000); // in milliseconds \ No newline at end of file diff --git a/utils/environmentVariablesCheck.js b/utils/environmentVariablesCheck.js index 114b77f7..e0392790 100644 --- a/utils/environmentVariablesCheck.js +++ b/utils/environmentVariablesCheck.js @@ -21,6 +21,10 @@ module.exports = () => { console.error('FATAL ERROR: companySecret is not defined'); return false; } + if (!config.get('sequelize_Database')){ + console.error('FATAL ERROR: sequelize_Database is not defined'); + return false; + } else return true; };