fix create user isDelete = false

This commit is contained in:
Warunee Tamkoo 2026-04-02 16:58:37 +07:00
parent fb4196cfa2
commit f7e8729e60

View file

@ -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, {