(req: RequestWithProjectParam)
| 83 | }>; |
| 84 | |
| 85 | function getProjectId(req: RequestWithProjectParam): Promise<string> { |
| 86 | const client = req.client!; |
| 87 | return resolveClientProjectId({ |
| 88 | clientType: client.type === 'root' ? 'root' : 'read', |
| 89 | clientProjectId: client.projectId ?? null, |
| 90 | organizationId: client.organizationId, |
| 91 | inputProjectId: req.params.projectId, |
| 92 | }); |
| 93 | } |
| 94 | |
| 95 | function getOrgId(req: RequestWithProjectParam): string { |
| 96 | return req.client!.organizationId; |
no test coverage detected