diff --git a/app/models/explainer.rb b/app/models/explainer.rb index 0e4708173..3ac3e05a7 100644 --- a/app/models/explainer.rb +++ b/app/models/explainer.rb @@ -69,7 +69,7 @@ def self.update_paragraphs_in_alegre(id, previous_paragraphs_count, timestamp) text: explainer.title, models: ALEGRE_MODELS_AND_THRESHOLDS.keys, } - Bot::Alegre.get_async_raw_params(params, "text") + Bot::Alegre.get_sync_raw_params(params, "text") # Index paragraphs count = 0 @@ -82,7 +82,7 @@ def self.update_paragraphs_in_alegre(id, previous_paragraphs_count, timestamp) text: paragraph.strip, models: ALEGRE_MODELS_AND_THRESHOLDS.keys, } - Bot::Alegre.get_async_raw_params(params, "text") + Bot::Alegre.get_sync_raw_params(params, "text") end # Remove paragraphs that don't exist anymore (we delete after updating in order to avoid race conditions)