Strategizer Server moved to old repos

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 19:38:56 +01:00
1 parent dc50cfa303
commit b91b7a20dd
36 files changed

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import 'dotenv/config';
import mongoose from 'mongoose';
mongoose.connect(process.env.MONGO_URL, { useNewUrlParser: true });
mongoose.set('useCreateIndex', true);
mongoose.set('useFindAndModify', false);
mongoose.Promise = global.Promise;
const db = mongoose.connection;
export default db;