(projectId: string)
| 257 | } |
| 258 | |
| 259 | async function getProjectWorkspacesWithMeta(projectId: string) { |
| 260 | const workspaces = await services.workspace.listByParentId(projectId); |
| 261 | const metas = await Promise.all( |
| 262 | workspaces.map(async workspace => ({ |
| 263 | workspace, |
| 264 | meta: await services.workspaceMeta.getByParentId(workspace._id), |
| 265 | })), |
| 266 | ); |
| 267 | |
| 268 | return metas; |
| 269 | } |
| 270 | |
| 271 | export function mapWorkspaceFileIssues({ |
| 272 | issues, |
no test coverage detected