Skip to content

Commit

Permalink
COH-55: Changed Boolean Conversion Code (#32)
Browse files Browse the repository at this point in the history
* COH-55: Changes Boolean Conversion Code

* COH-55: Second Commit(calling the purgeCohortMember unconditionally

* COH-55: Third Commit - fixing indentation
  • Loading branch information
WodPachua authored Oct 5, 2023
1 parent 2946571 commit 3a98ef1
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,7 @@ public CohortMember getByUniqueId(String uuid) {

@Override
public void purge(CohortMember cohortMember, RequestContext context) throws ResponseException {
boolean purge = Boolean.getBoolean(context.getParameter("purge"));
if (purge) {
Context.getService(CohortMemberService.class).purgeCohortMember(cohortMember);
} else {
Context.getService(CohortMemberService.class).voidCohortMember(cohortMember, "");
}
Context.getService(CohortMemberService.class).purgeCohortMember(cohortMember);
}

@PropertySetter("attributes")
Expand Down

0 comments on commit 3a98ef1

Please sign in to comment.