- Shipped
- July 7, 2026 at 7:20 PM UTC
- Author
- Kamo
- Commit
- 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.