KamoCRM

CreatePair is idempotent for the primary pair (stops duplicate BorrowerPairs)

Fixkamo-shared-library
Shipped
6 ஜூலை, 2026 அன்று 4:50 PM UTC
Author
Kamo
Commit
7a2bc64

createPair's sole caller is the wizard's 'ensure primary borrower', but it unconditionally inserted a new pair every call, so a concurrent autosave + explicit Save (both seeing an empty client cache) each POSTed and minted a duplicate BorrowerPair — a phantom co-applicant corrupting the URLA. If the app already has a pair, return the primary one instead.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing