Created
February 3, 2013 13:48
-
-
Save CalvinRodo/4701852 to your computer and use it in GitHub Desktop.
Parent object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var DB = function DB() { | |
} | |
DB.prototype = { | |
ConnectToDb: function () { | |
var mongoDb = require('mongoskin'), | |
settings = require('../express_settings.js'); | |
return mongoDb.db(settings.Config.MongoDbConnection); | |
} | |
} | |
exports.DB = DB; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that first var is completely unnecessary
consider doing
module.exports = DB
instead, but that's unrelated to your problemmight as well post everything here!