1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

Update src/core/baseClient.ts

Co-authored-by: James Cook <jamesatjaminit@jaminit.co.uk>
This commit is contained in:
Veloi 2023-09-18 17:58:05 +01:00 committed by GitHub
parent c279d9120f
commit 976b274dc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -327,7 +327,7 @@ export class BaseClient {
async postRewardPurchase(itemId: number): Promise<RewardPurchaseResponse> { async postRewardPurchase(itemId: number): Promise<RewardPurchaseResponse> {
return ( return (
await this.makeAuthedRequest( await this.makeAuthedRequest(
this.API_BASE + "/purchase" + itemId, this.API_BASE + "/purchase/" + itemId,
{ {
method: "POST", method: "POST",
body: `pupil_id=${this.studentId}` body: `pupil_id=${this.studentId}`