15 lines
370 B
TypeScript
15 lines
370 B
TypeScript
import db from "#database";
|
|
import { updateData } from "#scripts/update";
|
|
|
|
run();
|
|
|
|
async function run() {
|
|
// Starts the matchday
|
|
await updateData("", "./sample/data2.json");
|
|
await db
|
|
.updateTable("clubs")
|
|
.set({ gameStart: Math.floor(Date.now() / 1000 - 200) })
|
|
.execute();
|
|
// Simulates all the games
|
|
await updateData("", "./sample/data3.json");
|
|
}
|