(id: string)
| 4 | export type IServiceReference = Reference; |
| 5 | |
| 6 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected