Skip to content

Instantly share code, notes, and snippets.

View adamgiacomelli's full-sized avatar
🎩
Delivering

Adam Giacomelli adamgiacomelli

🎩
Delivering
View GitHub Profile
@adamgiacomelli
adamgiacomelli / vetting-example.ts
Created February 4, 2020 13:46
Example code to chew on
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(() => {
Atom settings?