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