first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import type { App_RoutingForms_Form } from "@calcom/prisma/client";
|
||||
|
||||
export default async function getConnectedForms(
|
||||
prisma: typeof import("@calcom/prisma").default,
|
||||
form: Pick<App_RoutingForms_Form, "id" | "userId">
|
||||
) {
|
||||
return await prisma.app_RoutingForms_Form.findMany({
|
||||
where: {
|
||||
userId: form.userId,
|
||||
routes: {
|
||||
array_contains: [
|
||||
{
|
||||
id: form.id,
|
||||
isRouter: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user