This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private mongoSetUp() { | |
| mongoose.connect(MONGODB_URL, { | |
| useNewUrlParser: true, | |
| useUnifiedTopology: true | |
| }); | |
| const connection = mongoose.connection; | |
| connection.on("disconnected", function() { | |
| console.log("Mongo connection disconnected"); | |
| console.log("Trying to reconnect ..."); | |
| setTimeout(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Atom settings? |