Skip to content

fix(db): add tenant_id to save_public_agent_message function#40

Merged
peterod99 merged 2 commits intomainfrom
claude/fix-funnel-display-zH4Bd
Jan 6, 2026
Merged

fix(db): add tenant_id to save_public_agent_message function#40
peterod99 merged 2 commits intomainfrom
claude/fix-funnel-display-zH4Bd

Conversation

@peterod99
Copy link
Copy Markdown
Owner

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

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
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 6, 2026

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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.

📥 Commits

Reviewing files that changed from the base of the PR and between f3ad1a5 and 308a744.

📒 Files selected for processing (1)
  • src/services/publicChatService.ts

Note

🎁 Summarized by CodeRabbit Free

Your 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 @coderabbitai help to get the list of available commands and usage tips.

@peterod99 peterod99 merged commit 19e5080 into main Jan 6, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants