Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
docker debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter-Thys committed Jan 8, 2021
1 parent 4844114 commit e8a5193
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
18 changes: 9 additions & 9 deletions commands/watchlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,21 @@ module.exports = {
});

// close the database connection
}
})
.catch(function (error) {
db.close((err) => {
if (err) {

console.log(error);
return console.error(err.message);

});
db.close((err) => {
if (err) {
}

return console.error(err.message);
console.log("Close the database connection.");

});
}
})
.catch(function (error) {

console.log("Close the database connection.");
console.log(error);

});
},
Expand Down
21 changes: 11 additions & 10 deletions posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,24 @@ module.exports = function () {
);
});
});
db.close((err) => {
if (err) {

return console.error(err.message);

}

console.log("Close the database connection.");

});
}
})


.catch(function (error) {
console.log(error);
});

db.close((err) => {
if (err) {

return console.error(err.message);

}

console.log("Close the database connection.");

});

executed = true;

Expand Down

0 comments on commit e8a5193

Please sign in to comment.