fixing error put change name
This commit is contained in:
parent
1fde4cd005
commit
7cbf4e171b
1 changed files with 7 additions and 6 deletions
|
|
@ -200,12 +200,13 @@ export class ProfileChangeNameController extends Controller {
|
||||||
await this.profileRepository.save(profile);
|
await this.profileRepository.save(profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (profile != null && profile.keycloak != null) {
|
// ปิดไว้ก่อนเพราะ error ต้องใช้ keycloak ที่มีสิทธิ์ในการ update
|
||||||
const result = await updateName(profile.keycloak, profile.firstName, profile.lastName);
|
// if (profile != null && profile.keycloak != null) {
|
||||||
if (!result) {
|
// const result = await updateName(profile.keycloak, profile.firstName, profile.lastName);
|
||||||
throw new Error(result.errorMessage);
|
// if (!result) {
|
||||||
}
|
// throw new Error(result.errorMessage);
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue