Files
triggerdotdev--trigger.dev/apps/webapp/app/models/fetchRequest.server.ts
T
2023-01-21 13:53:04 -08:00

17 lines
316 B
TypeScript

import { prisma } from "~/db.server";
import type { FetchRequest } from ".prisma/client";
export type { FetchRequest };
export async function findFetchRequestById(id: string) {
return prisma.fetchRequest.findUnique({
where: {
id,
},
include: {
step: true,
run: true,
},
});
}