Seth commited on
Commit ·
f779bc1
1
Parent(s): d8a52e7
update
Browse files- backend/app/main.py +2 -1
backend/app/main.py
CHANGED
|
@@ -436,11 +436,12 @@ async def push_to_smartlead(request: SmartleadPushRequest, db: Session = Depends
|
|
| 436 |
if body_str:
|
| 437 |
custom_variables[f'body_{i}'] = body_str
|
| 438 |
|
|
|
|
|
|
|
| 439 |
lead = {
|
| 440 |
"email": email,
|
| 441 |
"first_name": first_name,
|
| 442 |
"last_name": last_name,
|
| 443 |
-
"company": company,
|
| 444 |
"title": title,
|
| 445 |
"custom_variables": custom_variables
|
| 446 |
}
|
|
|
|
| 436 |
if body_str:
|
| 437 |
custom_variables[f'body_{i}'] = body_str
|
| 438 |
|
| 439 |
+
# Smartlead API doesn't allow "company" field - remove it
|
| 440 |
+
# Company info can be included in custom_variables if needed
|
| 441 |
lead = {
|
| 442 |
"email": email,
|
| 443 |
"first_name": first_name,
|
| 444 |
"last_name": last_name,
|
|
|
|
| 445 |
"title": title,
|
| 446 |
"custom_variables": custom_variables
|
| 447 |
}
|