Revert 96bc17aa10
This commit is contained in:
parent
27768081e2
commit
5448c22031
19 changed files with 125 additions and 194 deletions
|
@ -1,7 +1,7 @@
|
|||
import config from '../config';
|
||||
|
||||
const u = config.mongodb.user.map(x => encodeURIComponent(x)).getOrElse(null);
|
||||
const p = config.mongodb.pass.map(x => encodeURIComponent(x)).getOrElse(null);
|
||||
const u = config.mongodb.user ? encodeURIComponent(config.mongodb.user) : null;
|
||||
const p = config.mongodb.pass ? encodeURIComponent(config.mongodb.pass) : null;
|
||||
|
||||
const uri = `mongodb://${u && p ? `${u}:${p}@` : ''}${config.mongodb.host}:${config.mongodb.port}/${config.mongodb.db}`;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue