Skip to content
Snippets Groups Projects
Commit 18177268 authored by João Victor Risso's avatar João Victor Risso
Browse files

Change function() in mongoose.connection.once to arrow-notation

parent ba8d4c57
No related branches found
No related tags found
1 merge request!12add mongodb + mongoose and setup db config
Pipeline #
...@@ -11,7 +11,7 @@ module.exports = () => { ...@@ -11,7 +11,7 @@ module.exports = () => {
log.debug(`Connecting to MongDB on URI ${mongoUri}`); log.debug(`Connecting to MongDB on URI ${mongoUri}`);
const db = mongoose.connect(mongoUri); const db = mongoose.connect(mongoUri);
mongoose.connection.once('open', function() { log.info("Mongo DB connected!"); }); mongoose.connection.once('open', () => { log.info("MongoDB connected"); });
return db; return db;
}; };
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