Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #5423, remove heartbeat database check
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Dec 9, 2019
1 parent 33eeff1 commit 68243ed
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,21 +355,7 @@ app.get("/__lbheartbeat__", function(req, res) {

// This tests if the server is really working
app.get("/__heartbeat__", function(req, res) {
dbschema
.connectionOK()
.then(ok => {
if (!ok) {
statsd.increment("heartbeat.fail");
res.status(500).send("schema fail");
} else {
statsd.increment("heartbeat.pass");
res.send("OK");
}
})
.catch(error => {
statsd.increment("heartbeat.fail");
res.status(500).send("database fail");
});
res.send("OK");
});

app.use("/", require("./pages/homepage/server").app);
Expand Down

0 comments on commit 68243ed

Please sign in to comment.