Skip to content

Commit

Permalink
set all to sync
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Aug 18, 2024
1 parent 7645093 commit 4c46ae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/explainer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 4c46ae6

Please sign in to comment.