fix keycloak user & update isDelete
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m1s

This commit is contained in:
Warunee Tamkoo 2026-04-02 16:32:29 +07:00
parent 212360a764
commit fb4196cfa2
9 changed files with 445 additions and 354 deletions

View file

@ -115,7 +115,7 @@ export class ProfileChangeNameController extends Controller {
await this.profileRepository.save(profile, { data: req });
setLogDataDiff(req, { before, after: profile });
if (profile != null && profile.keycloak != null) {
if (profile != null && profile.keycloak != null && profile.isDelete === false) {
const result = await updateName(
profile.keycloak,
profile.firstName,
@ -186,7 +186,7 @@ export class ProfileChangeNameController extends Controller {
}
// ปิดไว้ก่อนเพราะ error ต้องใช้ keycloak ที่มีสิทธิ์ในการ update //update 17/07
if (profile != null && profile.keycloak != null) {
if (profile != null && profile.keycloak != null && profile.isDelete === false) {
const result = await updateName(
profile.keycloak,
profile.firstName,