mirror of
https://github.com/dap-ps/discover.git
synced 2025-02-07 15:05:07 +00:00
12 lines
236 B
JavaScript
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;
|