diff --git a/src/controllers/product/type-controller.ts b/src/controllers/product/type-controller.ts index a764c76..b207deb 100644 --- a/src/controllers/product/type-controller.ts +++ b/src/controllers/product/type-controller.ts @@ -130,7 +130,7 @@ export class ProductType extends Controller { ) { if ( body.productGroupId && - !(await prisma.productType.findFirst({ where: { id: body.productGroupId } })) + !(await prisma.productGroup.findFirst({ where: { id: body.productGroupId } })) ) { throw new HttpError( HttpStatus.BAD_REQUEST,