From c8b626a52de7ee80b0f35b5e733ac2a99a081b73 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 10 May 2022 17:58:58 -0700 Subject: [PATCH] Renamed job in example [skip ci] --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 01cb426..93bb7fb 100644 --- a/README.md +++ b/README.md @@ -719,7 +719,7 @@ Product.reindex Then, create a job to update the conversions column and reindex records with new conversions. Here’s one you can use for Searchjoy: ```ruby -class ReindexConversionsJob < ApplicationJob +class UpdateConversionsJob < ApplicationJob def perform(class_name, since: nil, reindex: true) # get records that have a recent conversion recently_converted_ids = @@ -758,13 +758,13 @@ end Run the job: ```ruby -ReindexConversionsJob.perform_now("Product") +UpdateConversionsJob.perform_now("Product") ``` And set it up to run daily. ```ruby -ReindexConversionsJob.perform_later("Product", since: 1.day.ago) +UpdateConversionsJob.perform_later("Product", since: 1.day.ago) ``` ## Personalized Results -- libgit2 0.21.0