fix
This commit is contained in:
parent
24820c4322
commit
8a3b374701
1 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue