Skip to content

Commit

Permalink
#183 refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony4m committed Jan 10, 2025
1 parent b9b9921 commit ddd9808
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,6 @@ else if (criteria.getSignalOutcome() == SignalOutcome.NON_EVENT){
}
queryBuilder.leftJoin(locationLongQueryBuilder);
}

// if (currentUser.getCommunity() != null) {
// locationLongQueryBuilder.where().eq(Location.COMMUNITY + "_id", currentUser.getCommunity().getId());
// }
// if (currentUser.getRegion() != null) {
// locationLongQueryBuilder.where().eq(Location.REGION + "_id", currentUser.getRegion().getId());
// queryBuilder.leftJoin(locationLongQueryBuilder);
// }
// if (criteria.getRegion() != null) {
// if (Objects.equals(currentUser.getRegion().getId(), criteria.getRegion().getId())) {
// System.out.println("User Region: " + currentUser.getRegion().getId());
// }
// }
if (criteria.getDistrict() != null) {
if (Objects.equals(currentUser.getDistrict().getId(), criteria.getDistrict().getId())) {
System.out.println("User District: " + currentUser.getDistrict().getId() + " Criteria District: " + criteria.getDistrict().getId());
Expand Down

0 comments on commit ddd9808

Please sign in to comment.