This commit is contained in:
@@ -6,6 +6,8 @@ import { getCurrentInterval } from "./scheduleRules.js";
|
|||||||
|
|
||||||
const PORT = process.env.PORT || 3000;
|
const PORT = process.env.PORT || 3000;
|
||||||
|
|
||||||
|
globalThis.File = class File {};
|
||||||
|
|
||||||
app.get('/', async (_, res) => {
|
app.get('/', 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", "current.json"), "utf8");
|
||||||
const data = JSON.parse(dataStr);
|
const data = JSON.parse(dataStr);
|
||||||
|
|||||||
Reference in New Issue
Block a user