1
0

fix: Internal server error
All checks were successful
Remote Deploy / deploy (push) Successful in 3s

This commit is contained in:
2025-08-31 16:53:16 +02:00
parent c82fef9e4f
commit bfa8359978

View File

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