Node.js based forum software built for the modern web
make call to db in /ping and /sping
Baris Usaklib56d6f8b5008
diff --git a/src/webserver.js b/src/webserver.jsindex 26f4820c15..7b5198378f 100644--- a/src/webserver.js+++ b/src/webserver.js@@ -180,8 +180,15 @@ function setupExpressApp(app, callback) {setupAutoLocale(app, callback);}-function ping(req, res) {- res.status(200).send(req.path === '/sping' ? 'healthy' : '200');+function ping(req, res, next) {+ async.waterfall([+ function (next) {+ db.getObject('config', next);+ },+ function () {+ res.status(200).send(req.path === '/sping' ? 'healthy' : '200');+ },+ ], next);}function setupFavicon(app) {