fix keycloak user & update isDelete
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m1s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m1s
This commit is contained in:
parent
212360a764
commit
fb4196cfa2
9 changed files with 445 additions and 354 deletions
|
|
@ -277,6 +277,7 @@ export class KeycloakController extends Controller {
|
|||
// Task #228
|
||||
// const _null: any = null;
|
||||
// profileEmp.keycloak = _null;
|
||||
profileEmp.isDelete = true;
|
||||
profileEmp.roleKeycloaks = [];
|
||||
await this.profileEmpRepo.save(profileEmp);
|
||||
}
|
||||
|
|
@ -284,6 +285,7 @@ export class KeycloakController extends Controller {
|
|||
// Task #228
|
||||
// const _null: any = null;
|
||||
// profile.keycloak = _null;
|
||||
profile.isDelete = true;
|
||||
profile.roleKeycloaks = [];
|
||||
await this.profileRepo.save(profile);
|
||||
return new HttpSuccess();
|
||||
|
|
@ -569,7 +571,7 @@ export class KeycloakController extends Controller {
|
|||
.leftJoinAndSelect("current_holders.orgChild3", "orgChild3")
|
||||
.leftJoinAndSelect("current_holders.orgChild4", "orgChild4")
|
||||
// .where("profile.keycloak IS NOT NULL AND profile.keycloak != ''")
|
||||
.where("profile.isActive = :isActive", { isActive: true })
|
||||
.where("profile.isDelete = :isDelete", { isDelete: false })
|
||||
.andWhere(checkChildFromRole)
|
||||
.andWhere(conditions)
|
||||
.andWhere(
|
||||
|
|
@ -613,7 +615,7 @@ export class KeycloakController extends Controller {
|
|||
.leftJoinAndSelect("current_holders.orgChild3", "orgChild3")
|
||||
.leftJoinAndSelect("current_holders.orgChild4", "orgChild4")
|
||||
// .where("profileEmployee.keycloak IS NOT NULL AND profileEmployee.keycloak != ''")
|
||||
.where("profileEmployee.isActive = :isActive", { isActive: true })
|
||||
.where("profileEmployee.isDelete = :isDelete", { isDelete: false })
|
||||
.andWhere(checkChildFromRole)
|
||||
.andWhere(conditions)
|
||||
.andWhere({ employeeClass: "PERM" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue