Skip to content

Commit

Permalink
fix email ilike
Browse files Browse the repository at this point in the history
  • Loading branch information
annarhughes committed Apr 17, 2024
1 parent 825a027 commit 9c0db53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export class UserService {
const users = await this.userRepository.find({
relations: relations,
where: {
...(filters.email && { email: ILike(filters.email) }),
...(filters.email && { email: ILike(`%${filters.email}%`) }),
...(filters.partnerAccess && {
partnerAccess: {
...(filters.partnerAccess.userId && { userId: filters.partnerAccess.userId }),
Expand Down

0 comments on commit 9c0db53

Please sign in to comment.