chore: Fix trigger message for response Bot (#8322)

- Fix the bug where wrong messages was used to search response sources
This commit is contained in:
Sojan Jose
2023-11-08 17:02:48 -08:00
committed by GitHub
parent af7631d9f1
commit 7b09b02737
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ class Enterprise::MessageTemplates::ResponseBotService
def perform
ActiveRecord::Base.transaction do
@response = get_response(conversation.messages.last.content)
@response = get_response(conversation.messages.incoming.last.content)
process_response
end
rescue StandardError => e