Skip to content

Commit

Permalink
[SELC-5514] feat: Updated gpuData config
Browse files Browse the repository at this point in the history
  • Loading branch information
giampieroferrara authored Nov 28, 2024
1 parent ef5b4e6 commit 9f28bec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public interface OnboardingMapper {
@Mapping(target = "id", expression = "java(UUID.randomUUID().toString())")
@Mapping(target = "billing.recipientCode", source = "billing.recipientCode", qualifiedByName = "toUpperCase")
@Mapping(target = "institution.gpuData", source = "gpuData")
@Mapping(target = "institution", source = "institution")
Onboarding toEntity(OnboardingDefaultRequest request);
@Mapping(target = "id", expression = "java(UUID.randomUUID().toString())")
@Mapping(target = "billing.recipientCode", source = "billing.recipientCode", qualifiedByName = "toUpperCase")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,10 @@ private WorkflowType getWorkflowType(Onboarding onboarding) {
return WorkflowType.CONFIRMATION;
}

if (InstitutionType.GPU.equals(institutionType)) {
return WorkflowType.FOR_APPROVE_GPU;
}

return WorkflowType.FOR_APPROVE;
}

Expand Down

0 comments on commit 9f28bec

Please sign in to comment.