From 1df1ff6f074528a4ad6d4015c794a1555c1c942f Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Mon, 3 Apr 2023 22:12:41 +0200 Subject: Polishing up Add all files to repo Add sql database Correct urls Add PHP code to repo Update README.md with instructions how to start Move from yarn to pnpm Fix all issues with starting Fix possibility of player changing their dice roll with refreshing the game --- helpers/helpersBack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helpers/helpersBack.ts') diff --git a/helpers/helpersBack.ts b/helpers/helpersBack.ts index 3d2f0a1..ec81259 100644 --- a/helpers/helpersBack.ts +++ b/helpers/helpersBack.ts @@ -10,7 +10,7 @@ export const API_RES = { }; export async function makeQuery(query: string, params: Array): Promise> { let t: any = await ( - await fetch("https://jopek.eu/maks/szkola/apkKli/fiaFiles/fia.php", { + await fetch("http://127.0.0.1:8001/fia.php", { method: "POST", headers: { Accept: "application/json", @@ -65,7 +65,7 @@ export async function sleep(ms: number) { return new Promise(resolve => setTimeout(resolve, ms)); } export async function waitForQueue(): Promise { - while(global.stop === true) { + while (global.stop === true) { await sleep(50); } } -- cgit v1.3.1