Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Removed temporary hotfix for default product role (#456)
Browse files Browse the repository at this point in the history
Co-authored-by: [email protected] <Aiap1955?^@#>
  • Loading branch information
pierpaolodidato89 and [email protected] authored Mar 28, 2024
1 parent 4e644c4 commit 83df589
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
@NoArgsConstructor(access = AccessLevel.NONE)
public class OnboardingMapper {

public static final String DEFAULT_PRODUCT_ROLE = "admin";
private static UserMapper userMapper = new UserMapperImpl();

private static Contract toContract(ContractRequest request) {
Expand Down Expand Up @@ -93,7 +92,7 @@ private static OnboardedInstitutionResponse constructOnboardedInstitutionRespons
institutionResponse.setAttributes(InstitutionMapperCustom.toAttributeResponse(institution.getAttributes()));
}
ProductInfo productInfo = new ProductInfo();
productInfo.setRole(Objects.nonNull(product.getProductRole()) ? product.getProductRole() : DEFAULT_PRODUCT_ROLE);
productInfo.setRole(product.getProductRole());
productInfo.setId(product.getProductId());
productInfo.setCreatedAt(product.getCreatedAt());
if(Objects.nonNull(product.getStatus())){
Expand Down

0 comments on commit 83df589

Please sign in to comment.