Class: ChatgptAssistant::NewChatJob
- Inherits:
-
Object
- Object
- ChatgptAssistant::NewChatJob
- Includes:
- Sidekiq::Job
- Defined in:
- lib/chatgpt_assistant/bots/jobs/new_chat_job.rb
Overview
This class is responsible to background the new chat service
Instance Method Summary collapse
Instance Method Details
#perform(chat_title, user_id, chat_id) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/chatgpt_assistant/bots/jobs/new_chat_job.rb', line 10 def perform(chat_title, user_id, chat_id) @config = Config.new @config.db_connection NewChatService.new(chat_title, user_id, chat_id, @config).call end |