duh strings dont work

This commit is contained in:
barisusakli
2014-12-14 22:34:53 -05:00
parent 64cc0f244d
commit c0c85c24cf

View File

@@ -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) {