Skip to content

Commit

Permalink
fix: AI bot handler uses user_id to fetch bot doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkothari22 committed Dec 19, 2024
1 parent d79e9fb commit 7dd7cfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def handle_ai_message(self):
return

# Get the bot user doc
peer_user_doc = frappe.get_cached_doc("Raven User", peer_user)
peer_user_doc = frappe.get_cached_doc("Raven User", peer_user.get("user_id"))

if peer_user_doc.type != "Bot" or not peer_user_doc.bot:
return
Expand Down

0 comments on commit 7dd7cfd

Please sign in to comment.