From 0c9e18799c1f9bc96b50c137e11e577afd3612e1 Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Mon, 30 Oct 2023 13:32:56 -0300 Subject: [PATCH] FIX: unexpected return in aihelper entry_point (#271) --- lib/modules/ai_helper/entry_point.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/ai_helper/entry_point.rb b/lib/modules/ai_helper/entry_point.rb index 01995d59..b3a74b26 100644 --- a/lib/modules/ai_helper/entry_point.rb +++ b/lib/modules/ai_helper/entry_point.rb @@ -20,8 +20,8 @@ module DiscourseAi additional_icons.each { |icon| plugin.register_svg_icon(icon) } plugin.on(:chat_thread_created) do |thread| - return unless SiteSetting.composer_ai_helper_enabled - return unless SiteSetting.ai_helper_automatic_chat_thread_title + next unless SiteSetting.composer_ai_helper_enabled + next unless SiteSetting.ai_helper_automatic_chat_thread_title Jobs.enqueue_in( SiteSetting.ai_helper_automatic_chat_thread_title_delay.minutes, :generate_chat_thread_title,