diff --git a/src/controllers/UserController.ts b/src/controllers/UserController.ts index 0b4629da..a3384f78 100644 --- a/src/controllers/UserController.ts +++ b/src/controllers/UserController.ts @@ -137,6 +137,7 @@ export class KeycloakController extends Controller { profile.keycloak = userId; } profile.email = body.email == null ? _null : body.email; + profile.isDelete = false; await this.profileRepo.save(profile); // Update Keycloak with profile prefix after profile is loaded @@ -202,6 +203,7 @@ export class KeycloakController extends Controller { profile.keycloak = userId; } profile.email = body.email == null ? _null : body.email; + profile.isDelete = false; await this.profileEmpRepo.save(profile); // Update Keycloak with profile prefix after profile is loaded await updateUserAttributes(userId, { @@ -760,6 +762,7 @@ export class KeycloakController extends Controller { profile.keycloak = userId; } profile.email = body.email == null ? _null : body.email; + profile.isDelete = false; await this.profileEmpRepo.save(profile); // Update Keycloak with profile prefix after profile is loaded await updateUserAttributes(userId, {