refactor: update api calls since we changed routes

This commit is contained in:
Derrick Hammer 2024-03-19 07:55:38 -04:00
parent bc5f143ae6
commit 5b04f7ecaf
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 8 additions and 8 deletions

View File

@ -19,13 +19,13 @@ import {
import { import {
postApiAuthLogin, postApiAuthLogin,
postApiAuthRegister, postApiAuthRegister,
postApiAuthVerifyEmail, postApiAccountVerifyEmail,
getApiAuthOtpGenerate, getApiAuthOtpGenerate,
postApiAuthOtpVerify, postApiAccountOtpVerify,
postApiAuthOtpValidate, postApiAccountOtpValidate,
postApiAuthOtpDisable, postApiAuthOtpDisable,
PasswordResetRequest, PasswordResetRequest,
postApiAuthPasswordResetConfirm, postApiAccountPasswordResetConfirm,
postApiAuthLogout, postApiAuthLogout,
getApiUploadLimit, getApiUploadLimit,
} from "./account/generated/index.js"; } from "./account/generated/index.js";
@ -88,7 +88,7 @@ export class AccountApi {
): Promise<boolean> { ): Promise<boolean> {
let ret: AxiosResponse<void>; let ret: AxiosResponse<void>;
try { try {
ret = await postApiAuthVerifyEmail( ret = await postApiAccountVerifyEmail(
verifyEmailRequest, verifyEmailRequest,
this.buildOptions(), this.buildOptions(),
); );
@ -111,7 +111,7 @@ export class AccountApi {
public async verifyOtp(otpVerifyRequest: OTPVerifyRequest): Promise<boolean> { public async verifyOtp(otpVerifyRequest: OTPVerifyRequest): Promise<boolean> {
let ret: AxiosResponse<void>; let ret: AxiosResponse<void>;
try { try {
ret = await postApiAuthOtpVerify(otpVerifyRequest, this.buildOptions()); ret = await postApiAccountOtpVerify(otpVerifyRequest, this.buildOptions());
} catch (e) { } catch (e) {
return false; return false;
} }
@ -123,7 +123,7 @@ export class AccountApi {
): Promise<boolean> { ): Promise<boolean> {
let ret: AxiosResponse<void>; let ret: AxiosResponse<void>;
try { try {
ret = await postApiAuthOtpValidate( ret = await postApiAccountOtpValidate(
otpValidateRequest, otpValidateRequest,
this.buildOptions(), this.buildOptions(),
); );
@ -165,7 +165,7 @@ export class AccountApi {
): Promise<boolean> { ): Promise<boolean> {
let ret: AxiosResponse<void>; let ret: AxiosResponse<void>;
try { try {
ret = await postApiAuthPasswordResetConfirm( ret = await postApiAccountPasswordResetConfirm(
passwordResetVerifyRequest, passwordResetVerifyRequest,
this.buildOptions(), this.buildOptions(),
); );