Compare commits

..

2 Commits

Author SHA1 Message Date
Derrick Hammer ef3d0d3fbc
fix: add ?. 2024-03-19 08:00:22 -04:00
Derrick Hammer 788e424841
refactor: update api calls since we changed routes 2024-03-19 07:59:39 -04:00
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import {
OTPVerifyRequest, OTPVerifyRequest,
PasswordResetVerifyRequest, PasswordResetVerifyRequest,
PingResponse, PingResponse,
postApiAuthPasswordResetRequest, postApiAccountPasswordResetRequest,
postApiAuthPing, postApiAuthPing,
RegisterRequest, RegisterRequest,
UploadLimitResponse, UploadLimitResponse,
@ -154,7 +154,7 @@ export class AccountApi {
): Promise<boolean> { ): Promise<boolean> {
let ret: AxiosResponse<void>; let ret: AxiosResponse<void>;
try { try {
ret = await postApiAuthPasswordResetRequest( ret = await postApiAccountPasswordResetRequest(
passwordResetRequest, passwordResetRequest,
this.buildOptions(), this.buildOptions(),
); );
@ -241,7 +241,7 @@ export class AccountApi {
this.buildOptions(), this.buildOptions(),
); );
} catch (e) { } catch (e) {
return new Error((e as AxiosError).response.data as string); return new Error((e as AxiosError).response?.data as string);
} }
return this.checkSuccessBool(ret); return this.checkSuccessBool(ret);