Promote base mortgage-market leads to LeadClaimMortgage on save so mortgage fields persist

Fixkamo-shared-library
Ya
9 Julai 2026, 23:18 UTC
Mwandishi
Kamo
Ahadi ya
dfa0ef2

A lead whose market sub-type is (residential/commercial) mortgage was stored as a base Lead unless the backend salesType itself equaled the mortgage type, so updateLead's 'instanceof LeadClaimMortgage' guard silently dropped every mortgage field (and getLead returned no mortgageFields → empty header KPIs). Promote in-place via the JOINED-inheritance subtype-row insert (ON CONFLICT DO NOTHING for concurrency) then reload.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei