mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
fix typo
This commit is contained in:
parent
a465a84499
commit
e584bebb5e
2 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ export class ClasschartsClient {
|
|||
public async makeAuthedRequest(
|
||||
path: string,
|
||||
axiosOptions: Omit<AxiosRequestConfig, "path">,
|
||||
options?: { inlcudeMeta?: boolean }
|
||||
options?: { includeMeta?: boolean }
|
||||
) {
|
||||
if (!this.authCookies) throw new Error("Not authenticated");
|
||||
const requestOptions: AxiosRequestConfig = {
|
||||
|
|
@ -62,7 +62,7 @@ export class ClasschartsClient {
|
|||
if (responseJSON.success == 0) {
|
||||
throw new Error(responseJSON.error);
|
||||
}
|
||||
if (options?.inlcudeMeta) {
|
||||
if (options?.includeMeta) {
|
||||
return responseJSON;
|
||||
}
|
||||
return responseJSON.data;
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ export class ClasschartsStudentClient extends ClasschartsClient {
|
|||
{
|
||||
method: "GET",
|
||||
},
|
||||
{ inlcudeMeta: true }
|
||||
{ includeMeta: true }
|
||||
);
|
||||
this.sessionId = pingData.meta.session_id;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue