(projectId: string)
| 42 | } |
| 43 | |
| 44 | async function ensureProject(projectId: string): Promise<Project> { |
| 45 | const project = await getProjectById(projectId); |
| 46 | if (!project) { |
| 47 | throw new Error('Project not found'); |
| 48 | } |
| 49 | return project; |
| 50 | } |
| 51 | |
| 52 | function mapEnvVar(model: EnvVar): EnvVarRecord { |
| 53 | return { |
no test coverage detected