fix store/fetch status page config

pull/124/head
LouisLam 3 years ago
parent a8e170f6a8
commit 5f6aa32844

@ -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";

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

Loading…
Cancel
Save