Sha256: 67324c8af25714379ef215043e62fff692964e65eafe5feb8a687aab5cf50835
Contents?: true
Size: 467 Bytes
Versions: 4
Compression:
Stored size: 467 Bytes
Contents
module MeiliSearch module Rails class MSCleanUpJob < ::ActiveJob::Base queue_as :meilisearch def perform(documents) documents.each do |document| index = MeiliSearch::Rails.client.index(document[:index_uid]) if document[:synchronous] index.delete_document!(document[:primary_key]) else index.delete_document(document[:primary_key]) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems