mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
fix: types
This commit is contained in:
parent
cb7be6e70b
commit
3cfaa20f2a
2 changed files with 15 additions and 14 deletions
|
|
@ -122,6 +122,7 @@ export class ClasschartsClient {
|
|||
const params = new URLSearchParams();
|
||||
options?.from && params.append("from", options?.from);
|
||||
options?.to && params.append("to", options?.to);
|
||||
options?.last_id && params.append("last_id", options?.last_id);
|
||||
return this.makeAuthedRequest(
|
||||
API_BASE + "/activity/" + this.sessionId + "?" + params.toString(),
|
||||
{
|
||||
|
|
@ -140,7 +141,6 @@ export class ClasschartsClient {
|
|||
const params = new URLSearchParams();
|
||||
options?.from && params.append("from", options?.from);
|
||||
options?.to && params.append("to", options?.to);
|
||||
options?.last_id && params.append("last_id", options?.last_id);
|
||||
return await this.makeAuthedRequest(
|
||||
API_BASE + "/behaviour/" + this.studentId + "?" + params.toString(),
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue