Loan-file status accessor for borrower edit-lock, borrower-delete cascade, gift-recipient app scoping

Fixkamo-shared-library
Shipped
July 7, 2026 at 8:39 PM UTC
Author
Kamo
Commit
c649941

**************** orgId): read helper backing the borrower post-submission edit lock (a borrower may only edit the URLA while the file is DRAFT). **************** deletePair/deleteBorrower now remove every per-borrower child row **************** **************** before the delete. Borrower has no cascade to these and bootstrapBorrower ALWAYS creates a Declarations + HMDA row, so a bare delete FK-failed every time (a mis-added borrower could never be removed). applyGift: resolve the gift recipient via findByUidAndAppMortgageUid scoped to the gift's own app instead of a bare findById — a caller could otherwise point the gift at another app's/org's borrower uid (cross-app IDOR / dangling FK).

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing