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,
PasswordResetVerifyRequest,
PingResponse,
postApiAuthPasswordResetRequest,
postApiAccountPasswordResetRequest,
postApiAuthPing,
RegisterRequest,
UploadLimitResponse,
@ -154,7 +154,7 @@ export class AccountApi {
): Promise<boolean> {
let ret: AxiosResponse<void>;
try {
ret = await postApiAuthPasswordResetRequest(
ret = await postApiAccountPasswordResetRequest(
passwordResetRequest,
this.buildOptions(),
);
@ -241,7 +241,7 @@ export class AccountApi {
this.buildOptions(),
);
} 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);