Skip to content

Commit

Permalink
Fix: Fix search method since is by org_number instead of uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianBalunan committed Mar 11, 2026
1 parent 55f1423 commit 7f022b0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public void addCharity(Charity charity) {
charities.add(charity);
}

public boolean removeCharity(UUID charityId) {
if (charityId == null) {
public boolean removeCharity(String org_number) {
if (org_number == null) {
throw new IllegalArgumentException("CharityId can not be null.");
}
return charities.removeIf(charity -> charityId.equals(charity.getId()));
return charities.removeIf(charity -> org_number.equals(charity.getOrg_number()));
}
}

0 comments on commit 7f022b0

Please sign in to comment.