From f8551edfb6cacf059b15c94c0e28e101532d082c Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:42:49 +0700 Subject: [PATCH] refactor: update store --- src/stores/branch/types.ts | 1 + src/stores/user/index.ts | 2 +- src/stores/user/types.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/branch/types.ts b/src/stores/branch/types.ts index 55a07087..76db798b 100644 --- a/src/stores/branch/types.ts +++ b/src/stores/branch/types.ts @@ -46,6 +46,7 @@ export type BranchCreate = { email: string; longitude: string; latitude: string; + status?: Status; subDistrictId?: string | null; districtId?: string | null; provinceId?: string | null; diff --git a/src/stores/user/index.ts b/src/stores/user/index.ts index 53f8b198..df4e0a98 100644 --- a/src/stores/user/index.ts +++ b/src/stores/user/index.ts @@ -334,7 +334,7 @@ const useUserStore = defineStore('api-user', () => { async function editById( id: string, - data: Partial>, + data: Partial, flow?: { sessionId: string; refTransactionId: string; diff --git a/src/stores/user/types.ts b/src/stores/user/types.ts index 137be587..c622f60f 100644 --- a/src/stores/user/types.ts +++ b/src/stores/user/types.ts @@ -74,6 +74,7 @@ export type UserCreate = { userRole: string; userType: string; username: string; + status: Status; profileImage?: File | null; // required but not strict birthDate?: Date | null; responsibleArea?: string | null;