Merge branch 'develop' into develop-Bright
This commit is contained in:
commit
76432d49a2
2 changed files with 8 additions and 9 deletions
|
|
@ -147,15 +147,12 @@ export class ProfileChangeNameController extends Controller {
|
|||
profile.prefix = body.prefix ?? profile.prefix;
|
||||
await this.profileRepository.save(profile);
|
||||
|
||||
// if (profile != null) {
|
||||
// const result = await updateName(profile.id, profile.firstName, profile.lastName,req);
|
||||
|
||||
// const _mapData = {
|
||||
// data: mappedData,
|
||||
// total: total,
|
||||
// };
|
||||
|
||||
// }
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue