fix: telephony bugs and improve code structure (#38)

- improved code structure for touch points
- corrected db migrations
This commit is contained in:
Sabiha Khan 2025-11-04 18:12:06 +05:30 committed by GitHub
parent 491e6edd36
commit d58f37ff42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 633 additions and 793 deletions

View file

@ -177,7 +177,7 @@ async def monitor_campaign_progress(ctx: Dict, campaign_id: int) -> None:
failed_calls = 0
for run in workflow_runs:
callbacks = run.logs.get("twilio_status_callbacks", [])
callbacks = run.logs.get("telephony_status_callbacks", [])
if callbacks:
final_status = callbacks[-1].get("status", "").lower()
if final_status == "completed":