Fix marketing funnel template creation error#32
Conversation
…template The funnel template creation was failing with "Tenant context not available" error because it relied on RPC get_current_tenant_id for step creation, even though the tenantId was already validated and available in scope. Changes: - funnelTemplatesService: Use existing tenantId variable instead of RPC call when inserting funnel_steps and optin_templates - funnelStepsService: Add optional explicitTenantId parameter with fallback chain (explicit -> RPC -> sessionStorage -> localStorage)
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe pull request modifies tenant context resolution in funnel-related services. The Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Free 📒 Files selected for processing (2)
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 |
…template
The funnel template creation was failing with "Tenant context not available" error because it relied on RPC get_current_tenant_id for step creation, even though the tenantId was already validated and available in scope.
Changes:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.