diff --git a/src/core/baseClient.ts b/src/core/baseClient.ts index af8de63..d2e8f21 100644 --- a/src/core/baseClient.ts +++ b/src/core/baseClient.ts @@ -72,7 +72,7 @@ export class BaseClient { * Makes a request to the ClassCharts API with the required authentication headers * * @param path Path to the API endpoint - * @param kyOptions Ky (fetch library) request options + * @param fetchOptions Request Options * @param options * @param options.revalidateToken Whether to revalidate the session ID if it is older than 3 minutes * diff --git a/src/utils/consts.ts b/src/utils/consts.ts index 964409d..50d3626 100644 --- a/src/utils/consts.ts +++ b/src/utils/consts.ts @@ -2,4 +2,4 @@ export const BASE_URL = "https://www.classcharts.com"; export const API_BASE_STUDENT = `${BASE_URL}/apiv2student`; export const API_BASE_PARENT = `${BASE_URL}/apiv2parent`; -export const PING_INTERVAL = 180 * 1000; // 3 minutes +export const PING_INTERVAL = 60 * 3 * 1000; // 3 minutes diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 48126dc..aa24abd 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -14,7 +14,6 @@ export function parseCookies(input: string) { } return output; } - export function leftTrim(str: string) { return str.replace(/^\s+/g, ""); }