fix: bot handoff should set waiting time (#13417)

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Shivam Mishra
2026-02-27 15:31:49 +05:30
committed by GitHub
parent d84ae196d5
commit df92fd12cb
4 changed files with 84 additions and 4 deletions

View File

@@ -159,6 +159,7 @@ class Conversation < ApplicationRecord
end
def bot_handoff!
update(waiting_since: Time.current) if waiting_since.blank?
open!
dispatcher_dispatch(CONVERSATION_BOT_HANDOFF)
end