Skip to content

Commit

Permalink
Add $MONGO_URL to MongoDB Helper
Browse files Browse the repository at this point in the history
  • Loading branch information
heptacode committed Oct 20, 2022
1 parent 0c3f1f7 commit 12ce8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/MongoDB-Helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DB {
this.isDatabaseConnect = true;
});
mongoose.set("useCreateIndex", true);
mongoose.connect(url || process.env.DB_URL || "mongodb://localhost/NEM-TEMPLATE", { useNewUrlParser: true, useUnifiedTopology: true });
mongoose.connect(url || process.env.DB_URL || process.env.MONGO_URL || "mongodb://localhost/NEM-TEMPLATE", { useNewUrlParser: true, useUnifiedTopology: true });
}
/**
* @description DB 연결 여부 확인
Expand Down

0 comments on commit 12ce8ff

Please sign in to comment.