fix: type
This commit is contained in:
parent
02546b53aa
commit
b77c6dce1a
2 changed files with 2 additions and 2 deletions
|
|
@ -334,7 +334,7 @@ const useUserStore = defineStore('api-user', () => {
|
||||||
|
|
||||||
async function editById(
|
async function editById(
|
||||||
id: string,
|
id: string,
|
||||||
data: Partial<UserCreate & { status: 'ACTIVE' | 'INACTIVE' }>,
|
data: Partial<UserCreate & { status?: 'ACTIVE' | 'INACTIVE' }>,
|
||||||
flow?: {
|
flow?: {
|
||||||
sessionId: string;
|
sessionId: string;
|
||||||
refTransactionId: string;
|
refTransactionId: string;
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ export type UserCreate = {
|
||||||
userRole: string;
|
userRole: string;
|
||||||
userType: string;
|
userType: string;
|
||||||
username: string;
|
username: string;
|
||||||
status: Status;
|
status?: Status;
|
||||||
profileImage?: File | null; // required but not strict
|
profileImage?: File | null; // required but not strict
|
||||||
birthDate?: Date | null;
|
birthDate?: Date | null;
|
||||||
responsibleArea?: string | null;
|
responsibleArea?: string | null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue