mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 16:02:14 +00:00
mongo auto_reconncet option
This commit is contained in:
parent
a7100b6606
commit
f60166301e
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ mongoose = require('mongoose');
|
|||
require('./models/user'); //load up the user schema - TODO is this necessary?
|
||||
require('./models/group');
|
||||
require('./models/challenge');
|
||||
mongoose.connect(nconf.get('NODE_DB_URI'), function(err) {
|
||||
mongoose.connect(nconf.get('NODE_DB_URI'), {auto_reconnect:true}, function(err) {
|
||||
if (err) throw err;
|
||||
console.info('Connected with Mongoose');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue