Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 8ded4b2

Browse files
authored
FIX: Use present? instead of invalid exists? (#869)
1 parent a2b1ea3 commit 8ded4b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/summarization/entry_point.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def inject_into(plugin)
5555
SiteSetting.ai_summarize_max_hot_topics_gists_per_batch > 0 && post.topic
5656
hot_score = TopicHotScore.find_by(topic: post.topic)
5757

58-
if hot_score.exists? && hot_score.updated_at > 1.day.ago
58+
if hot_score.present? && hot_score.updated_at > 1.day.ago
5959
Jobs.enqueue(:update_hot_topic_gist, topic_id: post&.topic_id)
6060
end
6161
end

0 commit comments

Comments
 (0)