Commit c185ff1
fix(deploy): keep the workspace-id resolver module-private
A mechanical edit stranded an `export` onto `resolveWorkspaceId` and stripped it
from `DeploymentStateRow`. It type-checked because the call sites pass the row
structurally, so nothing caught it.
The export is the part that matters: this helper queries the global pool, so
calling it inside a transaction callback is exactly the nested checkout the
tripwire throws on — and exporting it invited a caller to do that from somewhere
already holding a connection. That widened the surface the previous commit
narrowed by making `materializeDeploymentState` require a `workspaceId`.
`DeploymentStateRow` stays unexported: nothing imports it, and the call sites
satisfy it structurally.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 9a199c3 commit c185ff1
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
| |||
0 commit comments