Permalink
Browse files

Updated mongo article provider.

  • Loading branch information...
1 parent 0f19574 commit 5a61c2901b93a03772dddab151361286483723eb @loarabia loarabia committed Jul 23, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 articles/express-mongodb/articleprovider-mongodb.js
View
8 articles/express-mongodb/articleprovider-mongodb.js
@@ -1,6 +1,8 @@
-var Db= require('mongodb/db').Db,
- ObjectID= require('mongodb/bson/bson').ObjectID,
- Server= require('mongodb/connection').Server;
+var Db = require('mongodb').Db;
+var Connection = require('mongodb').Connection;
+var Server = require('mongodb').Server;
+var BSON = require('mongodb').BSON;
+var ObjectID = require('mongodb').ObjectID;
ArticleProvider = function(host, port) {
this.db= new Db('node-mongo-blog', new Server(host, port, {auto_reconnect: true}, {}));

0 comments on commit 5a61c29

Please sign in to comment.