From 3456fdad00073cf986cc5c5583a5836c9fbb77a6 Mon Sep 17 00:00:00 2001 From: Roman Rizzi Date: Fri, 13 Dec 2024 19:29:21 -0300 Subject: [PATCH] Update app/jobs/regular/fast_track_topic_gist.rb Co-authored-by: Keegan George --- app/jobs/regular/fast_track_topic_gist.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/regular/fast_track_topic_gist.rb b/app/jobs/regular/fast_track_topic_gist.rb index 29fb12174..8885bee30 100644 --- a/app/jobs/regular/fast_track_topic_gist.rb +++ b/app/jobs/regular/fast_track_topic_gist.rb @@ -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