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

Update studentClient.ts

This commit is contained in:
Veloi 2023-09-18 19:59:13 +01:00 committed by GitHub
parent a5c94bf8f9
commit 2a0ffdb8ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ export class StudentClient extends BaseClient {
* @param itemId number * @param itemId number
* @returns An object containg balence and id * @returns An object containg balence and id
*/ */
async purchasePurchase(itemId: number): Promise<RewardPurchaseResponse> { async purchaseReward(itemId: number): Promise<RewardPurchaseResponse> {
return ( return (
await this.makeAuthedRequest( await this.makeAuthedRequest(
this.API_BASE + "/purchase/" + itemId, this.API_BASE + "/purchase/" + itemId,