Skip to content

Commit

Permalink
AYS-357 | emailAddress Filter Has Been Fixed in User Filter
Browse files Browse the repository at this point in the history
  • Loading branch information
agitrubard committed Jul 27, 2024
1 parent 1fc1af5 commit 39c4990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/ays/auth/model/AysUserFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public Specification<AysUserEntity> toSpecification() {
criteriaBuilder.like(criteriaBuilder.upper(root.get("lastName")), "%" + this.lastName.toUpperCase() + "%"));
}

if (this.lastName != null) {
if (this.emailAddress != null) {
specification = specification.and((root, query, criteriaBuilder) ->
criteriaBuilder.like(criteriaBuilder.upper(root.get("emailAddress")), "%" + this.emailAddress.toUpperCase() + "%"));
}
Expand Down

0 comments on commit 39c4990

Please sign in to comment.