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

Function getProjectWorkspacesWithMeta

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

Source from the content-addressed store, hash-verified

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

Callers 1

getProjectGitFileIssuesFunction · 0.85

Calls 2

mapMethod · 0.80
allMethod · 0.65

Tested by

no test coverage detected