add function
This commit is contained in:
parent
252ecdf6ee
commit
f05c2f4b63
1 changed files with 7 additions and 0 deletions
|
|
@ -199,6 +199,13 @@ export class ProfileChangeNameController extends Controller {
|
||||||
await this.profileRepository.save(profile);
|
await this.profileRepository.save(profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (profile != null && profile.keycloak != null) {
|
||||||
|
const result = await updateName(profile.keycloak, profile.firstName, profile.lastName);
|
||||||
|
if (!result) {
|
||||||
|
throw new Error(result.errorMessage);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue