Commit 5c67e99
fix(data-drains): dispatcher must short-circuit enterprise check on self-hosted
isOrganizationOnEnterprisePlan returns false on deployments without billing
infrastructure, so the dispatcher would silently skip every drain on
self-hosted even with DATA_DRAINS_ENABLED=true. Mirror the access.ts pattern:
when isBillingEnabled is false, treat all orgs as eligible — the cron route's
DATA_DRAINS_ENABLED gate already controls global on/off.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 216c861 commit 5c67e99
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
0 commit comments