fix: Internal server error
All checks were successful
Remote Deploy / deploy (push) Successful in 3s
All checks were successful
Remote Deploy / deploy (push) Successful in 3s
This commit is contained in:
@@ -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"] = {
|
||||
|
||||
Reference in New Issue
Block a user