Skip to content

Commit

Permalink
Support node 0.4 in mongodb adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Mar 11, 2012
1 parent 8bb855c commit d558dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/mongodb.js
Expand Up @@ -15,7 +15,7 @@ exports.initialize = function initializeSchema(schema, callback) {
var url = require('url').parse(schema.settings.url);
s.host = url.hostname;
s.port = url.port;
s.database = url.path.replace(/^\//, '');
s.database = url.pathname.replace(/^\//, '');
s.username = url.auth && url.auth.split(':')[0];
s.password = url.auth && url.auth.split(':')[1];
}
Expand Down

0 comments on commit d558dd6

Please sign in to comment.