MCPcopy Create free account
hub / github.com/Kong/insomnia / getProjectWorkspacesWithMeta

Function getProjectWorkspacesWithMeta

packages/insomnia/src/main/git-service.ts:259–269  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

257}
258
259async 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
271export function mapWorkspaceFileIssues({
272 issues,

Callers 1

getProjectGitFileIssuesFunction · 0.85

Calls 2

mapMethod · 0.80
allMethod · 0.65

Tested by

no test coverage detected