0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 19:52:43 +00:00

Revert "Try upping Mongoose to 5.7.5"

This reverts commit 59e0118d8b.
This commit is contained in:
Trevor Buckner
2020-02-03 14:52:06 -05:00
parent 59e0118d8b
commit 6ef88e0f1f
3 changed files with 146 additions and 139 deletions

View File

@@ -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') + '?retryWrites=false');
mongoose.connect(config.get('mongodb_uri') || config.get('mongolab_uri') || 'mongodb://localhost/naturalcrit');
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.');