From b77c6dce1a30e78278f5560b7047bef9974669d9 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:23:10 +0700 Subject: [PATCH] fix: type --- src/stores/user/index.ts | 2 +- src/stores/user/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/user/index.ts b/src/stores/user/index.ts index df4e0a98..2a5e39dc 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 c622f60f..2676ead6 100644 --- a/src/stores/user/types.ts +++ b/src/stores/user/types.ts @@ -74,7 +74,7 @@ export type UserCreate = { userRole: string; userType: string; username: string; - status: Status; + status?: Status; profileImage?: File | null; // required but not strict birthDate?: Date | null; responsibleArea?: string | null;