( id: string, )
| 24 | } |
| 25 | |
| 26 | export 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 | |
| 37 | export const getClientByIdCached = cacheable(getClientById, 60 * 5); |
nothing calls this directly
no outgoing calls
no test coverage detected