Skip to content

Commit

Permalink
Update app/jobs/regular/fast_track_topic_gist.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Keegan George <kgeorge13@gmail.com>
  • Loading branch information
romanrizzi and keegangeorge authored Dec 13, 2024
1 parent 575042d commit 3456fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/regular/fast_track_topic_gist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def execute(args)

summarizer = DiscourseAi::Summarization.topic_gist(topic)
gist = summarizer.existing_summary
return if gist.present? && (!gist.outdated || gist.created_at > 5.minutes.ago)
return if gist.present? && (!gist.outdated || gist.created_at >= 5.minutes.ago)

summarizer.force_summarize(Discourse.system_user)
end
Expand Down

0 comments on commit 3456fda

Please sign in to comment.