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

Function getReportById

packages/db/src/services/reports.service.ts:131–146  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

129}
130
131export async function getReportById(id: string) {
132 const report = await db.report.findUnique({
133 where: {
134 id,
135 },
136 include: {
137 layout: true,
138 },
139 });
140
141 if (!report) {
142 return null;
143 }
144
145 return transformReport(report);
146}
147
148import { AggregateChartEngine, ChartEngine } from '../engine';
149import { getDashboardById } from './dashboard.service';

Callers 4

runReportFunction · 0.90
report.tsFile · 0.90
chart.tsFile · 0.90
share.tsFile · 0.90

Calls 1

transformReportFunction · 0.85

Tested by

no test coverage detected