Skip to content

Commit

Permalink
reformated the bot schema
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Dec 27, 2013
1 parent 1a36199 commit 3fc7a12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions db/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
var mongoose = require('mongoose');
var mongo_url;

mongo_url = process.env.MONGOURL
// mongo_url = 'mongodb://localhost/livebots_dev';
mongo_url = process.env.MONGOURL || 'mongodb://localhost/livebots_dev';

require('./models/bots');
require('./models/commands');
Expand Down
2 changes: 1 addition & 1 deletion db/models/bots.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ botSchema.statics.findAll = function (cb) {
this.find({},cb);
};


var Bot = module.exports = mongoose.model('Bot', botSchema);

0 comments on commit 3fc7a12

Please sign in to comment.