mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-17 11:44:38 -05:00
fix store/fetch status page config
This commit is contained in:
parent
a8e170f6a8
commit
5f6aa32844
@ -13,7 +13,7 @@ router.get("/api/entry-page", async (_, response) => {
|
|||||||
router.get("/api/status-page/config", async (_request, response) => {
|
router.get("/api/status-page/config", async (_request, response) => {
|
||||||
allowDevAllOrigin(response);
|
allowDevAllOrigin(response);
|
||||||
|
|
||||||
let config = getSettings("statusPage");
|
let config = await getSettings("statusPage");
|
||||||
|
|
||||||
if (! config.statusPageTheme) {
|
if (! config.statusPageTheme) {
|
||||||
config.statusPageTheme = "light";
|
config.statusPageTheme = "light";
|
||||||
|
@ -72,11 +72,11 @@ module.exports.statusPageSocketHandler = (socket) => {
|
|||||||
try {
|
try {
|
||||||
checkLogin(socket);
|
checkLogin(socket);
|
||||||
|
|
||||||
await R.transaction(async (trx) => {
|
|
||||||
// Save Config
|
// Save Config
|
||||||
//TODO
|
|
||||||
await setSettings("statusPage", config);
|
await setSettings("statusPage", config);
|
||||||
|
|
||||||
|
await R.transaction(async (trx) => {
|
||||||
|
|
||||||
// Save Icon
|
// Save Icon
|
||||||
|
|
||||||
// Save Public Group List
|
// Save Public Group List
|
||||||
|
Loading…
Reference in New Issue
Block a user