fantasy-manager/cypress/e2e/predictions2.ts
Lukas Schaefer d3a5fe88f9
switch to kysely (#863)
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
2025-05-09 19:12:32 -04:00

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");
}