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

Function querySessions

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

Source from the content-addressed store, hash-verified

580});
581
582export async function querySessions(
583 req: FastifyRequest<{ Params: { projectId?: string }; Querystring: z.infer<typeof zSessionsQuery> }>,
584 reply: FastifyReply
585) {
586 const projectId = await getProjectId(req as RequestWithProjectParam);
587 return reply.send(await querySessionsCore({ projectId, ...req.query }));
588}
589
590// ---------------------------------------------------------------------------
591// Groups

Callers

nothing calls this directly

Calls 3

querySessionsCoreFunction · 0.90
getProjectIdFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected