From 976b274dc273c0923cc5091c5d53f23cef626631 Mon Sep 17 00:00:00 2001 From: Veloi <85405932+veloii@users.noreply.github.com> Date: Mon, 18 Sep 2023 17:58:05 +0100 Subject: [PATCH] Update src/core/baseClient.ts Co-authored-by: James Cook --- src/core/baseClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/baseClient.ts b/src/core/baseClient.ts index ffcee89..9f863d8 100644 --- a/src/core/baseClient.ts +++ b/src/core/baseClient.ts @@ -327,7 +327,7 @@ export class BaseClient { async postRewardPurchase(itemId: number): Promise { return ( await this.makeAuthedRequest( - this.API_BASE + "/purchase" + itemId, + this.API_BASE + "/purchase/" + itemId, { method: "POST", body: `pupil_id=${this.studentId}`