FIX: unexpected return in aihelper entry_point (#271)

This commit is contained in:
Rafael dos Santos Silva 2023-10-30 13:32:56 -03:00 committed by GitHub
parent 3c55ea8fc0
commit 0c9e18799c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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,