diff --git a/packages/repository/src/mongoDB/MongoDBConnection.js b/packages/repository/src/mongoDB/MongoDBConnection.js index 3bae5761..8b80f70a 100644 --- a/packages/repository/src/mongoDB/MongoDBConnection.js +++ b/packages/repository/src/mongoDB/MongoDBConnection.js @@ -13,7 +13,7 @@ const logger = require('@cedalo/logger').create({ name: 'MongoDBConnection' }); const defaultOptions = { host: process.env.MONGO_HOST || 'localhost', - port: !!process.env.MONGO_PORT ? parseInt(process.env.MONGO_PORT, 10) : 27017, + port: process.env.MONGO_PORT ? parseInt(process.env.MONGO_PORT, 10) : 27017, database: process.env.MONGO_DATABASE || 'test', username: process.env.MONGO_USERNAME, password: process.env.MONGO_PASSWORD