fix: type

This commit is contained in:
Methapon2001 2024-04-18 17:23:10 +07:00
parent 02546b53aa
commit b77c6dce1a
2 changed files with 2 additions and 2 deletions

View file

@ -334,7 +334,7 @@ const useUserStore = defineStore('api-user', () => {
async function editById(
id: string,
data: Partial<UserCreate & { status: 'ACTIVE' | 'INACTIVE' }>,
data: Partial<UserCreate & { status?: 'ACTIVE' | 'INACTIVE' }>,
flow?: {
sessionId: string;
refTransactionId: string;

View file

@ -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;