fix(db): add tenant_id to save_public_agent_message function#40
fix(db): add tenant_id to save_public_agent_message function#40
Conversation
The public_agent_messages table requires tenant_id but the RPC function wasn't setting it, causing message saves to fail. Changes: - Added p_tenant_id parameter to the RPC function - Updated publicChatService to pass tenant_id from storage - Function falls back to session context and agent lookup if not provided
|
Warning Rate limit exceeded@peterod99 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 43 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
The public_agent_messages table requires tenant_id but the RPC function wasn't setting it, causing message saves to fail. Changes: