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

Function findProfiles

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

Source from the content-addressed store, hash-verified

522});
523
524export async function findProfiles(
525 req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zProfilesQuery> }>,
526 reply: FastifyReply
527) {
528 const projectId = await getProjectId(req as RequestWithProjectParam);
529 return reply.send(await findProfilesCore({ projectId, ...req.query }));
530}
531
532export const zGetProfileQuery = z.object({ eventLimit: z.number().int().min(1).max(100).default(20) });
533

Callers

nothing calls this directly

Calls 3

findProfilesCoreFunction · 0.90
getProjectIdFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected