From c813dfadd4b673080695ef3ade37a44e37036c07 Mon Sep 17 00:00:00 2001 From: Maks Jopek Date: Sat, 1 May 2021 00:20:33 +0200 Subject: Version 1.1 --- helpers/helpersBack.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'helpers/helpersBack.ts') diff --git a/helpers/helpersBack.ts b/helpers/helpersBack.ts index b0e9a6d..3d2f0a1 100644 --- a/helpers/helpersBack.ts +++ b/helpers/helpersBack.ts @@ -9,11 +9,6 @@ export const API_RES = { failure: '{"success": false}', }; export async function makeQuery(query: string, params: Array): Promise> { - // console.log("params are ", JSON.stringify({ - // apiKey: process.env.API_KEY, - // query: query, - // params: params - // })); let t: any = await ( await fetch("https://jopek.eu/maks/szkola/apkKli/fiaFiles/fia.php", { method: "POST", @@ -47,7 +42,6 @@ export async function getData(gid: number): Promise { data = JSON.parse(data) as Data; return data; } else { - console.log(data); throw new Error("Data is not a object"); } } @@ -125,7 +119,7 @@ export interface OldTd { } export interface Chequer { color: tColors; - ghost?: Ghost; // number; // 1 | 2 | 3 | 4 | 5 | 6; + ghost?: Ghost; }; export interface Coordinates { x: number; //0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11; @@ -137,7 +131,7 @@ export interface Square extends Coordinates { } export interface HoBSquare extends Coordinates { chequer: tColors; - ghost?: Ghost; // number; // 1 | 2 | 3 | 4 | 5 | 6; + ghost?: Ghost; } export interface HomesOrBases { 0: Array; -- cgit v1.3.1