From f7e8729e60bc0697e8626f7dfa507b7dda21df1c Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 2 Apr 2026 16:58:37 +0700 Subject: [PATCH] fix create user isDelete = false --- src/controllers/UserController.ts | 3 +++ 1 file changed, 3 insertions(+) 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, {