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

Function getClientById

packages/db/src/services/clients.service.ts:26–35  ·  view source on GitHub ↗
(
  id: string,
)

Source from the content-addressed store, hash-verified

24}
25
26export async function getClientById(
27 id: string,
28): Promise<IServiceClientWithProject | null> {
29 return db.client.findUnique({
30 where: { id },
31 include: {
32 project: true,
33 },
34 });
35}
36
37export const getClientByIdCached = cacheable(getClientById, 60 * 5);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected