1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-02-01 03:54:46 +00:00
discover/back-end/config/db-config.js
2019-06-03 21:01:42 +03:00

12 lines
236 B
JavaScript

let mongoose = require("mongoose");
class DBConfig {
static config() {
mongoose.Promise = global.Promise;
mongoose.connect(process.env.DB_CONNECTION, { useNewUrlParser: true });
}
}
module.exports = DBConfig;