Skip to content
Snippets Groups Projects
Commit aa59e1c2 authored by Lucas Gabriel Lima's avatar Lucas Gabriel Lima
Browse files

add mongoose promise (was lost during merge)

parent 3c7962d5
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!25Auth
Pipeline #
......@@ -6,6 +6,8 @@ const log = require(`${libs}/log`)(module);
const mongoose = require('mongoose');
mongoose.Promise = global.Promise;
module.exports = () => {
const mongoUri = process.env.MONGO_URI || config.get('mongodb:uri');
log.debug(`Connecting to MongDB on URI ${mongoUri}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment