Skip to content

Commit

Permalink
fix: 🐛 fixes usage of environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvmx committed Mar 8, 2022
1 parent eecfea5 commit 91e30e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const {

// Inicia o banco de dados
let connectionString = "";
if (DATABASE_URL != "") {
if (DATABASE_URL != undefined) {
connectionString = `${DATABASE_URL}`;
} else {
connectionString = `postgres://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}`;
Expand Down

0 comments on commit 91e30e2

Please sign in to comment.