MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getGroup

Function getGroup

apps/api/src/controllers/insights.controller.ts:618–624  ·  view source on GitHub ↗
(
  req: FastifyRequest<{ Params: { projectId?: string; groupId: string }; Querystring: z.infer<typeof zGetGroupQuery> }>,
  reply: FastifyReply
)

Source from the content-addressed store, hash-verified

616export const zGetGroupQuery = z.object({ memberLimit: z.number().int().min(1).max(50).default(10) });
617
618export async function getGroup(
619 req: FastifyRequest<{ Params: { projectId?: string; groupId: string }; Querystring: z.infer<typeof zGetGroupQuery> }>,
620 reply: FastifyReply
621) {
622 const projectId = await getProjectId(req as RequestWithProjectParam);
623 return reply.send(await getGroupCore({ projectId, groupId: req.params.groupId, memberLimit: req.query.memberLimit }));
624}
625
626// ---------------------------------------------------------------------------
627// Dashboards & reports

Callers

nothing calls this directly

Calls 3

getGroupCoreFunction · 0.90
getProjectIdFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected