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

Function listDashboardsCore

packages/db/src/services/dashboard.service.ts:42–51  ·  view source on GitHub ↗
(input: {
  projectId: string;
  organizationId: string;
})

Source from the content-addressed store, hash-verified

40}
41
42export async function listDashboardsCore(input: {
43 projectId: string;
44 organizationId: string;
45}) {
46 return db.dashboard.findMany({
47 where: { projectId: input.projectId },
48 orderBy: { createdAt: 'desc' },
49 select: { id: true, name: true, projectId: true },
50 });
51}

Callers 2

listDashboardsFunction · 0.90
base.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected