This commit is contained in:
@@ -10,9 +10,7 @@ app.get('/', async (_, res) => {
|
||||
const dataStr = await fs.readFile(path.join(process.cwd(), "db", "current.json"), "utf8");
|
||||
const data = JSON.parse(dataStr);
|
||||
|
||||
data["status"] = {
|
||||
currentUpdateSchedule: getCurrentInterval(),
|
||||
};
|
||||
data["status"]["currentUpdateSchedule"] = getCurrentInterval();
|
||||
|
||||
res.json(data);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user