Change find_by to find for better error messaging (#6178) [deploy]

This commit is contained in:
Alex 2020-02-20 09:58:41 -08:00 committed by GitHub
parent 1dfa3d6183
commit 4eca3c1f5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ module Search
sidekiq_options queue: :high_priority
def perform(tag_id)
tag = ::Tag.find_by!(id: tag_id)
tag = ::Tag.find(tag_id)
tag.index_to_elasticsearch_inline
end
end