Skip to content
Snippets Groups Projects
Commit 8b618041 authored by Amber Brown's avatar Amber Brown
Browse files

fixup

parent c980c7e3
No related branches found
No related tags found
No related merge requests found
......@@ -648,7 +648,7 @@ class UserDirectoryStore(BackgroundUpdateStore):
) AS s USING (user_id)
"""
join_args = (user_id,)
where_clause = "p.user_id IS NOT NULL"
where_clause = "(s.user_id IS NOT NULL OR p.user_id IS NOT NULL)"
if isinstance(self.database_engine, PostgresEngine):
full_query, exact_query, prefix_query = _parse_query_postgres(search_term)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment