-
-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Describe the bug/issue
When a user creates a new organization, they immediately see "subscription required" instead of their trial. This happens because:
Org creation inserts into orgs table (synchronous)
Trigger queues on_organization_create job to pgmq (async)
Frontend fetches orgs via get_orgs_v7() - but stripe_info doesn't exist yet
Since stripe_info is missing, trial_left = 0 and user sees "subscription required"
~10-60 seconds later, queue processes and creates stripe_info with trial
Copilot