Idempotent borrower self-create draft + deterministic active lead-market resolution

Fixkamo-shared-library
Ya
7 Julai 2026, 19:20 UTC
Mwandishi
Kamo
Ahadi ya
5675ef2

**************** memberId): resolves the member's existing in-progress DRAFT application so a repeated borrower self-create (double-click / reload / second tab / client retry) resumes it instead of minting duplicate blank applications. A borrower whose only apps are submitted/closed still gets null and can start a genuinely new one. **************** add a deterministic ORDER BY dateCreated ASC, id ASC (mirroring the CommerceMarket twin) so a caller taking the FIRST active market — MortgageVerticalResolver picking the org's single RESIDENTIAL_MORTGAGE market for the portal readiness gate — gets a STABLE winner. Without it, an org with >1 active market of a sales type could see the winner drift across queries (CRDB range redistribution / stats refresh), silently flipping the portal's lead market and readiness gate.

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