updata user add employmentOffice
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
This commit is contained in:
parent
70245a2b4f
commit
a06d5514fc
5 changed files with 55 additions and 9 deletions
|
|
@ -79,11 +79,11 @@ type UserCreate = {
|
|||
citizenExpire?: Date | null;
|
||||
|
||||
namePrefix?: string | null;
|
||||
firstName: string;
|
||||
firstName?: string;
|
||||
firstNameEN: string;
|
||||
middleName?: string | null;
|
||||
middleNameEN?: string | null;
|
||||
lastName: string;
|
||||
lastName?: string;
|
||||
lastNameEN: string;
|
||||
gender: string;
|
||||
|
||||
|
|
@ -123,6 +123,9 @@ type UserCreate = {
|
|||
|
||||
remark?: string;
|
||||
agencyStatus?: string;
|
||||
|
||||
contactName?: string;
|
||||
contactTel?: string;
|
||||
};
|
||||
|
||||
type UserUpdate = {
|
||||
|
|
@ -139,9 +142,9 @@ type UserUpdate = {
|
|||
|
||||
namePrefix?: string | null;
|
||||
firstName?: string;
|
||||
firstNameEN?: string;
|
||||
firstNameEN: string;
|
||||
middleName?: string | null;
|
||||
middleNameEN?: string | null;
|
||||
middleNameEN: string | null;
|
||||
lastName?: string;
|
||||
lastNameEN?: string;
|
||||
gender?: string;
|
||||
|
|
@ -182,6 +185,9 @@ type UserUpdate = {
|
|||
|
||||
remark?: string;
|
||||
agencyStatus?: string;
|
||||
|
||||
contactName?: string;
|
||||
contactTel?: string;
|
||||
};
|
||||
|
||||
const permissionCondCompany = createPermCondition((_) => true);
|
||||
|
|
@ -477,8 +483,8 @@ export class UserController extends Controller {
|
|||
}
|
||||
|
||||
const userId = await createUser(username, username, {
|
||||
firstName: body.firstName,
|
||||
lastName: body.lastName,
|
||||
firstName: body.firstNameEN,
|
||||
lastName: body.lastNameEN,
|
||||
email: body.email,
|
||||
requiredActions: ["UPDATE_PASSWORD"],
|
||||
enabled: rest.status !== "INACTIVE",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue