send json response for status check

This commit is contained in:
Al Saleh 2025-07-19 11:40:50 +02:00
parent 951aa74510
commit 806db58be6

View File

@ -147,7 +147,7 @@ const app = express()
.use(ENDPOINTS.statusCheck, (req, res) => {
try {
statusCheck(req.url, async (results) => {
await res.end(results);
await res.json(results).end();
});
} catch (e) {
printWarning(`Error running status check for ${req.url}\n`, e);