({ id }: { id: string })
| 22 | import { typedNodeEntry } from "~/types/dbColumns.types"; |
| 23 | |
| 24 | const fetchNode = async ({ id }: { id: string }) => |
| 25 | prisma.node |
| 26 | .findUnique({ |
| 27 | where: { id }, |
| 28 | }) |
| 29 | .then((n) => (n ? typedNode(n) : null)); |
| 30 | |
| 31 | export type ProcessNodeJob = { |
| 32 | nodeId: string; |
no test coverage detected