Skip to content

Commit

Permalink
Support searching people by username
Browse files Browse the repository at this point in the history
  • Loading branch information
skwowet committed Jul 22, 2024
1 parent e165ad3 commit fc07dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/database/repositories/memberRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,7 @@ class MemberRepository {
"memberId"
FROM "memberIdentities" mi
join members m on m.id = mi."memberId"
where (verified and type = '${MemberIdentityType.EMAIL}' and lower("value") ilike '%${search}%') or m."displayName" ilike '%${search}%'
where (verified and lower("value") ilike '%${search}%') or m."displayName" ilike '%${search}%'
GROUP BY 1
)
`
Expand Down

0 comments on commit fc07dfa

Please sign in to comment.