aboutsummaryrefslogtreecommitdiffstats
path: root/helpers/helpersBack.ts
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2023-04-03 22:12:41 +0200
committerMaksymilian Jopek <maks@jopek.eu>2023-04-03 22:12:41 +0200
commit1df1ff6f074528a4ad6d4015c794a1555c1c942f (patch)
treead3b16291748c60441967996706006555919ef73 /helpers/helpersBack.ts
parentc813dfadd4b673080695ef3ade37a44e37036c07 (diff)
downloadfia-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/helpersBack.ts')
-rw-r--r--helpers/helpersBack.ts4
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);
}
}