Skip to content

Commit

Permalink
Merge pull request #1188 from The-Commit-Company/1186-user-id-in-rave…
Browse files Browse the repository at this point in the history
…n-bot-handler

fix: AI bot handler uses user_id to fetch bot doc
  • Loading branch information
nikkothari22 authored Dec 19, 2024
2 parents d79e9fb + 7dd7cfd commit ec47fac
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 ec47fac

Please sign in to comment.