fix store/fetch status page config

This commit is contained in:
LouisLam 2021-09-20 20:44:07 +08:00
parent a8e170f6a8
commit 5f6aa32844
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ router.get("/api/entry-page", async (_, response) => {
router.get("/api/status-page/config", async (_request, response) => {
allowDevAllOrigin(response);
let config = getSettings("statusPage");
let config = await getSettings("statusPage");
if (! config.statusPageTheme) {
config.statusPageTheme = "light";

View File

@ -72,11 +72,11 @@ module.exports.statusPageSocketHandler = (socket) => {
try {
checkLogin(socket);
await R.transaction(async (trx) => {
// Save Config
//TODO
await setSettings("statusPage", config);
await R.transaction(async (trx) => {
// Save Icon
// Save Public Group List