PageView is no longer a valid model to index (#6161)

This commit is contained in:
Molly Struve 2020-02-18 16:06:51 -05:00 committed by GitHub
parent 567eb49ee1
commit 0085437725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ module Search
sidekiq_options queue: :medium_priority, retry: 10
VALID_RECORD_TYPES = %w[Comment Article User PageView].freeze
VALID_RECORD_TYPES = %w[Comment Article User].freeze
def perform(record_type, record_id)
unless VALID_RECORD_TYPES.include?(record_type)