duh strings dont work

v1.18.x
barisusakli 10 years ago
parent 64cc0f244d
commit c0c85c24cf

@ -62,7 +62,7 @@
var connString = 'mongodb://' + usernamePassword + nconf.get('mongo:host') + ':' + nconf.get('mongo:port') + '/' + nconf.get('mongo:database');
var connOptions = {
server: {
poolSize: nconf.get('mongo:poolSize') || 10
poolSize: parseInt(nconf.get('mongo:poolSize'), 10) || 10
}
};
mongoClient.connect(connString, connOptions, function(err, _db) {

Loading…
Cancel
Save