From 8a3b3747014ad6f9b008f08939666a1463de0ee9 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 14 Jun 2024 13:29:36 +0700 Subject: [PATCH] fix --- src/controllers/ProfileChangeNameController.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/controllers/ProfileChangeNameController.ts b/src/controllers/ProfileChangeNameController.ts index 628e2c20..f4efc7b2 100644 --- a/src/controllers/ProfileChangeNameController.ts +++ b/src/controllers/ProfileChangeNameController.ts @@ -147,12 +147,12 @@ export class ProfileChangeNameController extends Controller { profile.prefix = body.prefix ?? profile.prefix; await this.profileRepository.save(profile); - if (profile != null && profile.keycloak != null) { - const result = await updateName(profile.keycloak, profile.firstName, profile.lastName, req); - if (!result) { - throw new Error(result.errorMessage); - } - } + // if (profile != null && profile.keycloak != null) { + // const result = await updateName(profile.keycloak, profile.firstName, profile.lastName, req); + // if (!result) { + // throw new Error(result.errorMessage); + // } + // } return new HttpSuccess(data.id); }