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