diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2023-04-03 22:12:41 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2023-04-03 22:12:41 +0200 |
| commit | 1df1ff6f074528a4ad6d4015c794a1555c1c942f (patch) | |
| tree | ad3b16291748c60441967996706006555919ef73 /helpers | |
| parent | c813dfadd4b673080695ef3ade37a44e37036c07 (diff) | |
| download | fia-1df1ff6f074528a4ad6d4015c794a1555c1c942f.tar.gz fia-1df1ff6f074528a4ad6d4015c794a1555c1c942f.tar.zst fia-1df1ff6f074528a4ad6d4015c794a1555c1c942f.zip | |
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
Diffstat (limited to 'helpers')
| -rw-r--r-- | helpers/helpersBack.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<any>): Promise<Array<any>> { 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<void> { - while(global.stop === true) { + while (global.stop === true) { await sleep(50); } } |
