diff --git a/src/controllers/OrganizationUnauthorizeController.ts b/src/controllers/OrganizationUnauthorizeController.ts index caf55741..35b28e48 100644 --- a/src/controllers/OrganizationUnauthorizeController.ts +++ b/src/controllers/OrganizationUnauthorizeController.ts @@ -871,7 +871,7 @@ export class OrganizationUnauthorizeController extends Controller { .leftJoinAndSelect("current_holders.orgChild4", "orgChild4") .leftJoinAndSelect("current_holders.positions", "positions") // .leftJoinAndSelect("positions.posExecutive", "posExecutive") - .where({ citizenId: id, employeeclass: "PREM" }) + .where({ citizenId: id, employeeClass: "PERM" }) .getOne(); if (!findProfile) { throw new HttpError(HttpStatusCode.NOT_FOUND, "not found Profile"); @@ -1152,5 +1152,6 @@ export class OrganizationUnauthorizeController extends Controller { Object.assign(profile, body); profile.statusEmail = "VERIFIED"; await this.profileRepo.save(profile); + return new HttpSuccess("Email verified successfully."); } }