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

Function findGroups

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

Source from the content-addressed store, hash-verified

606});
607
608export async function findGroups(
609 req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zGroupsQuery> }>,
610 reply: FastifyReply
611) {
612 const projectId = await getProjectId(req as RequestWithProjectParam);
613 return reply.send(await findGroupsCore({ projectId, ...req.query }));
614}
615
616export const zGetGroupQuery = z.object({ memberLimit: z.number().int().min(1).max(50).default(10) });
617

Callers

nothing calls this directly

Calls 3

findGroupsCoreFunction · 0.90
getProjectIdFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected