diff --git a/pkg/models/user.go b/pkg/models/user.go index b498209..ec73b66 100644 --- a/pkg/models/user.go +++ b/pkg/models/user.go @@ -283,10 +283,10 @@ func SearchUsers(user *User, search *UserSearch, pager *Pagination) ([]*User, er wheres = append(wheres, ` EXISTS ( SELECT 1 FROM profile_fields - WHERE user_id = users.id AND name = ? AND value = ? + WHERE user_id = users.id AND name = ? AND value LIKE ? ) `) - placeholders = append(placeholders, "here_for", search.HereFor) + placeholders = append(placeholders, "here_for", "%"+search.HereFor+"%") } if search.Certified {