Skip to content

Commit 0f338f7

Browse files
authored
fixed the subject choice print api with the new api payload (#10)
* fetching fines, fees summary and elective & subject choice endpoint added * fix: updated subject preference endpoint coz api changes * made it consistent with othet apis
1 parent 291b997 commit 0f338f7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/wrapper.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,11 +547,12 @@ export class WebPortal {
547547
*/
548548
async get_subject_choices(semester) {
549549
const ENDPOINT = "/studentchoiceprint/getsubjectpreference";
550-
const payload = {
550+
551+
const payload = await serialize_payload({
551552
instituteid: this.session.instituteid,
552-
studentid: this.session.memberid,
553+
clientid: this.session.clientid,
553554
registrationid: semester.registration_id,
554-
};
555+
});
555556
const resp = await this.__hit("POST", API + ENDPOINT, { json: payload, authenticated: true });
556557
return resp["response"];
557558
}

0 commit comments

Comments
 (0)