1
0

fix: 500
All checks were successful
Remote Deploy / deploy (push) Successful in 4s

This commit is contained in:
2025-08-14 21:09:43 +02:00
parent 06de9919a3
commit e41d94ef34

View File

@@ -7,7 +7,7 @@ const { getCurrentInterval } = require("./scheduleRules");
const PORT = process.env.PORT || 3000;
app.get('/', async (_, res) => {
const dataStr = fs.readFile(path.join(__dirname, "db", "current.json"));
const dataStr = await fs.readFile(path.join(__dirname, "db", "current.json"));
const data = JSON.parse(dataStr);
data["status"] = {