mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
A deal crossing into abandonment builds an abandon_job message 🟩
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
aaa8c9763f
commit
0d69d628e8
1 changed files with 7 additions and 0 deletions
|
|
@ -210,6 +210,10 @@ class HubspotDealDiffer:
|
|||
new_deal=new_deal, new_project=new_project, old_deal=old_deal
|
||||
):
|
||||
flows.append("sync_tenant_data")
|
||||
if HubspotDealDiffer.check_for_abri_deal_abandonment(
|
||||
new_deal=new_deal, new_project=new_project, old_deal=old_deal
|
||||
):
|
||||
flows.append("abandon_job")
|
||||
|
||||
if not flows:
|
||||
return None
|
||||
|
|
@ -227,6 +231,9 @@ class HubspotDealDiffer:
|
|||
else None
|
||||
),
|
||||
"confirmed_survey_time": new_deal.get("confirmed_survey_time"),
|
||||
# Carried for the abandon flow's reason-mapping seam; harmless to
|
||||
# the other flows, which ignore it.
|
||||
"outcome": new_deal.get("outcome"),
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue