diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index a5e60960..cdde0201 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -130,6 +130,8 @@ export class ProfileController extends Controller { } const profile = Object.assign(new Profile(), body); + profile.isProbation = false; + profile.isLeave = false; profile.createdUserId = request.user.sub; profile.createdFullName = request.user.name; profile.lastUpdateUserId = request.user.sub; diff --git a/src/entities/Profile.ts b/src/entities/Profile.ts index 5a8310cc..35d10dde 100644 --- a/src/entities/Profile.ts +++ b/src/entities/Profile.ts @@ -546,21 +546,21 @@ export class CreateProfile { firstName: string; lastName: string; position: string; - email: string | null; - phone: string | null; - isProbation: boolean | null; - dateRetire: Date | null; + // email: string | null; + // phone: string | null; + // isProbation: boolean | null; + // dateRetire: Date | null; birthDate: Date | null; - ethnicity: string | null; - telephoneNumber: string | null; - nationality: string | null; + // ethnicity: string | null; + // telephoneNumber: string | null; + // nationality: string | null; citizenId: string; - religion: string | null; + // religion: string | null; posLevelId: string | null; posTypeId: string | null; - gender: string | null; - relationship: string | null; - bloodGroup: string | null; + // gender: string | null; + // relationship: string | null; + // bloodGroup: string | null; } export type UpdateProfile = { @@ -568,12 +568,12 @@ export type UpdateProfile = { prefix?: string | null; firstName?: string | null; lastName?: string | null; - position?: string | null; + // position?: string | null; email?: string | null; phone?: string | null; - keycloak?: string | null; - isProbation?: boolean | null; - dateRetire?: Date | null; + // keycloak?: string | null; + // isProbation?: boolean | null; + // dateRetire?: Date | null; birthDate?: Date | null; ethnicity?: string | null; telephoneNumber?: string | null;