mirror of
https://github.com/dap-ps/discover.git
synced 2025-02-01 03:54:46 +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;
|