mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-25 03:09:24 -06:00
fix: remove direct usage of prisma type in services (#919)
This commit is contained in:
@@ -184,15 +184,8 @@ export const deleteTeam = async (teamId: string) => {
|
||||
|
||||
export const createDemoProduct = async (teamId: string) => {
|
||||
validateInputs([teamId, ZId]);
|
||||
const productWithEnvironment = Prisma.validator<Prisma.ProductArgs>()({
|
||||
include: {
|
||||
environments: true,
|
||||
},
|
||||
});
|
||||
|
||||
type ProductWithEnvironment = Prisma.ProductGetPayload<typeof productWithEnvironment>;
|
||||
|
||||
const demoProduct: ProductWithEnvironment = await prisma.product.create({
|
||||
const demoProduct = await prisma.product.create({
|
||||
data: {
|
||||
name: "Demo Product",
|
||||
team: {
|
||||
|
||||
Reference in New Issue
Block a user