* hook up user search for chat channels to Elasticsearch * Add spaces * run specs * add more spaces * reset travis file * add another data upadte script to reindex Users
11 lines
262 B
Ruby
11 lines
262 B
Ruby
module DataUpdateScripts
|
|
class IndexUsersToElasticsearch
|
|
def run
|
|
User.select(:id).find_each do |user|
|
|
Search::IndexToElasticsearchWorker.set(queue: :low_priority).perform_async(
|
|
"User", user.id
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|