Commit 54bab0e
committed
TML-2839: prevent factory output from overriding bound scaffold fields in mongo buildBoundContract
Spread only the factory's declared outputs (models/valueObjects/roots) via
ifDefined instead of the whole factory return, so a factory cannot clobber the
pre-bound family/target/extensionPacks. Follow-up to the CodeRabbit finding on
#730 (TML-2817), which merged before it was addressed.
Signed-off-by: Will Madden <madden@prisma.io>1 parent fa181e3 commit 54bab0e
1 file changed
Lines changed: 7 additions & 1 deletion
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1721 | 1721 | | |
1722 | 1722 | | |
1723 | 1723 | | |
1724 | | - | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1725 | 1731 | | |
1726 | 1732 | | |
1727 | 1733 | | |
| |||
0 commit comments