Compare commits
2 Commits
c0345dec11
...
ef3d0d3fbc
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | ef3d0d3fbc | |
Derrick Hammer | 788e424841 |
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue