diff --git a/app/models/user/search.rb b/app/models/user/search.rb index 7d6c6daf0..be2ae4de9 100644 --- a/app/models/user/search.rb +++ b/app/models/user/search.rb @@ -58,10 +58,10 @@ returns # try search index backend if SearchIndexBackend.enabled? - items = SearchIndexBackend.search( query, limit, 'User' ) + items = SearchIndexBackend.search(query, limit, 'User') users = [] items.each { |item| - users.push User.lookup( id: item[:id] ) + users.push User.lookup(id: item[:id]) } return users end