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

Function getReportData

apps/api/src/controllers/insights.controller.ts:646–652  ·  view source on GitHub ↗
(
  req: FastifyRequest<{ Params: { projectId?: string; reportId: string } }>,
  reply: FastifyReply
)

Source from the content-addressed store, hash-verified

644}
645
646export async function getReportData(
647 req: FastifyRequest<{ Params: { projectId?: string; reportId: string } }>,
648 reply: FastifyReply
649) {
650 const projectId = await getProjectId(req as RequestWithProjectParam);
651 return reply.send(await getReportDataCore({ projectId, reportId: req.params.reportId, organizationId: getOrgId(req as RequestWithProjectParam) }));
652}
653
654// ---------------------------------------------------------------------------
655// Google Search Console

Callers

nothing calls this directly

Calls 4

getReportDataCoreFunction · 0.90
getOrgIdFunction · 0.85
getProjectIdFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected