mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 07:52:40 +00:00
Try upping Mongoose to 5.7.5
Small fix to connection string to keep Mongoose working with the older MongoDB 3.6 database
This commit is contained in:
@@ -16,7 +16,7 @@ const config = require('nconf')
|
||||
|
||||
//DB
|
||||
const mongoose = require('mongoose');
|
||||
mongoose.connect(config.get('mongodb_uri') || config.get('mongolab_uri') || 'mongodb://localhost/naturalcrit');
|
||||
mongoose.connect((config.get('mongodb_uri') || config.get('mongolab_uri') || 'mongodb://localhost/naturalcrit') + '?retryWrites=false');
|
||||
mongoose.connection.on('error', ()=>{
|
||||
console.log('Error : Could not connect to a Mongo Database.');
|
||||
console.log(' If you are running locally, make sure mongodb.exe is running.');
|
||||
|
||||
Reference in New Issue
Block a user