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

Function getReferenceById

packages/db/src/services/reference.service.ts:6–18  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

4export type IServiceReference = Reference;
5
6export async function getReferenceById(id: string) {
7 const reference = await db.reference.findUnique({
8 where: {
9 id,
10 },
11 });
12
13 if (!reference) {
14 return null;
15 }
16
17 return reference;
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected