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

Fix unnecessary this

Co-authored-by: James Cook <jamesatjaminit@jaminit.co.uk>
This commit is contained in:
Isaac Hatton 2023-10-08 12:37:19 +01:00 committed by GitHub
parent 5803088d92
commit 58b75690e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ export class ParentClient extends BaseClient {
* @param new New password
* @returns Whether the request was successful
*/
async changePassword(this: ParentClient, current: string, newPassword: string): Promise<ChangePasswordResponse>{
async changePassword(currentPassword: string, newPassword: string): Promise<ChangePasswordResponse> {
const formData = new URLSearchParams();
formData.append("current", current);
formData.append("new", newPassword);