diff --git a/server/routers/status-page-router.js b/server/routers/status-page-router.js index 29acaf8ea..42cccc942 100644 --- a/server/routers/status-page-router.js +++ b/server/routers/status-page-router.js @@ -40,16 +40,12 @@ router.get("/api/status-page/:slug", cache("5 minutes"), async (request, respons ]); if (!statusPage) { + sendHttpError(response, "Status Page Not Found"); return null; } let statusPageData = await StatusPage.getStatusPageData(statusPage); - if (!statusPageData) { - sendHttpError(response, "Not Found"); - return; - } - // Response response.json(statusPageData);