fix: remove direct usage of prisma type in services (#919)

This commit is contained in:
Rotimi Best
2023-10-03 12:56:48 +01:00
committed by GitHub
parent 9fbefa42dd
commit 4b1352a995

View File

@@ -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: {