[Status Page] wip

This commit is contained in:
Louis Lam 2022-03-16 14:14:47 +08:00
parent 7c7dbf68c1
commit 18ec42b060
6 changed files with 17 additions and 7 deletions

View file

@ -220,11 +220,7 @@ async function checkPublished() {
* @returns {Promise<boolean>}
*/
async function isPublished() {
const value = await setting("statusPagePublished");
if (value === null) {
return true;
}
return value;
return true;
}
function send403(res, msg = "") {