Commit 123b18d
fix(Integrations): Stop overwriting HubSpot company names with Flagsmith org names
When a user signs up, the HubSpot integration overwrites the company
name with whatever the user typed as their Flagsmith org name. This
leads to incorrect names replacing real company names that HubSpot
already enriched from the email domain.
Now only sets the company name if HubSpot doesn't already have one,
using the email domain as a fallback instead of the org name.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b4cf014 commit 123b18d
2 files changed
Lines changed: 8 additions & 7 deletions
File tree
- api
- integrations/lead_tracking/hubspot
- tests/unit/integrations/lead_tracking/hubspot
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
169 | | - | |
170 | | - | |
| 171 | + | |
171 | 172 | | |
172 | | - | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
0 commit comments