1
0

chore: Minor changes
All checks were successful
Remote Deploy / deploy (push) Successful in 5s

This commit is contained in:
2025-12-20 20:27:03 +01:00
parent 0dbe1ed796
commit a8ae9c1ec3
8 changed files with 234 additions and 208 deletions

View File

@@ -18,7 +18,7 @@ app.get('/', async (req, res) => {
if (isBrowser) {
res.sendFile(path.join(process.cwd(), "web", "public", "index.html"));
} else {
const dataStr = await fs.readFile(path.join(process.cwd(), "db", "current.json"), "utf8");
const dataStr = await fs.readFile(path.join(process.cwd(), "db", "v1.json"), "utf8");
const data = JSON.parse(dataStr);
data["status"]["currentUpdateSchedule"] = getCurrentInterval();
@@ -28,7 +28,7 @@ app.get('/', async (req, res) => {
});
app.get('/versioned/v1', async (_, res) => {
const dataStr = await fs.readFile(path.join(process.cwd(), "db", "current.json"), "utf8");
const dataStr = await fs.readFile(path.join(process.cwd(), "db", "v1.json"), "utf8");
const data = JSON.parse(dataStr);
data["status"]["currentUpdateSchedule"] = getCurrentInterval();