Skip to content

Commit

Permalink
hotfix: rename status name in user-cdc (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf authored Apr 16, 2024
1 parent c543bd7 commit 45d5cba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public class UserInstitutionRole {
private String institutionRootName;
private String userMailUuid;
private PartyRole role;
private OnboardedProductState state;
private OnboardedProductState status;

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public interface UserMapper {

@Mapping(target = "institutionName", source = "userInstitution.institutionDescription")
@Mapping(target = "role", source = "role")
@Mapping(target = "state", source = "state")
UserInstitutionRole toUserInstitutionRole(UserInstitution userInstitution, PartyRole role, OnboardedProductState state);
@Mapping(target = "status", source = "status")
UserInstitutionRole toUserInstitutionRole(UserInstitution userInstitution, PartyRole role, OnboardedProductState status);
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private UserInfo replaceOrAddInstitution(UserInfo userInfo, UserInstitution user
.findFirst()
.ifPresentOrElse(userInstitutionRole -> {
userInstitutionRole.setRole(role);
userInstitutionRole.setState(state);
userInstitutionRole.setStatus(state);
},
() -> {
List<UserInstitutionRole> roleList = new ArrayList<>(userInfo.getInstitutions());
Expand Down

0 comments on commit 45d5cba

Please sign in to comment.