From 7bbd3891a76d3a6da20a4aa3888e6da87e41aa6d Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Mon, 10 Oct 2022 00:42:33 +0800 Subject: refactor/fix: Small refactors/fixes, update imports --- code/app/src/lib/api/user.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'code/app/src/lib/api/user.ts') diff --git a/code/app/src/lib/api/user.ts b/code/app/src/lib/api/user.ts index f0dc932..f08fb6d 100644 --- a/code/app/src/lib/api/user.ts +++ b/code/app/src/lib/api/user.ts @@ -1,9 +1,9 @@ -import {api_base} from "$lib/configuration"; -import {http_delete, http_get, http_post} from "./internal-fetch"; -import type {LoginPayload} from "$lib/models/LoginPayload"; -import type {UpdateProfilePayload} from "$lib/models/UpdateProfilePayload"; -import type {CreateAccountPayload} from "$lib/models/CreateAccountPayload"; -import type {IInternalFetchResponse} from "$lib/models/IInternalFetchResponse"; +import { api_base } from "$lib/configuration"; +import { http_delete, http_get, http_post } from "./internal-fetch"; +import type { LoginPayload } from "$lib/models/internal/LoginPayload"; +import type { UpdateProfilePayload } from "$lib/models/internal/UpdateProfilePayload"; +import type { CreateAccountPayload } from "$lib/models/internal/CreateAccountPayload"; +import type { IInternalFetchResponse } from "$lib/models/internal/IInternalFetchResponse"; export async function login(payload: LoginPayload): Promise { return http_post(api_base("_/account/login"), payload); @@ -25,7 +25,7 @@ export async function check_forgot_password_request(public_id: string): Promise< export async function fulfill_forgot_password_request(public_id: string, newPassword: string): Promise { if (!public_id) throw new Error("Id is empty"); - return http_post(api_base("_/forgot-password-requests/fulfill"), {id: public_id, newPassword}); + return http_post(api_base("_/forgot-password-requests/fulfill"), { id: public_id, newPassword }); } export async function delete_account(): Promise { -- cgit v1.3