Skip to content

Commit

Permalink
refactor: hardcode connectWithCollection setting
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas committed Nov 1, 2017
1 parent 13d39e9 commit b7ba854
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 0 additions & 5 deletions config.js
Expand Up @@ -10,11 +10,6 @@ var conf = convict({
env: "NODE_ENV",
arg: "node_env"
},
connectWithCollection: {
doc: "Informs API it should include the collection name to build the connection string",
format: Boolean,
default: true,
},
hosts: {
doc: "",
format: Array,
Expand Down
5 changes: 1 addition & 4 deletions index.js
@@ -1,12 +1,9 @@
const path = require('path')
const config = require(
path.join(__dirname, 'config')
)

module.exports = require(
path.join(__dirname, 'lib')
)

module.exports.settings = {
connectWithCollection: config.get('connectWithCollection')
connectWithCollection: true
}

0 comments on commit b7ba854

Please sign in to comment.