(id: string)
| 129 | } |
| 130 | |
| 131 | export 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 | |
| 148 | import { AggregateChartEngine, ChartEngine } from '../engine'; |
| 149 | import { getDashboardById } from './dashboard.service'; |
no test coverage detected