fix: error not found (wrong table)

This commit is contained in:
Methapon2001 2024-06-18 09:19:15 +07:00
parent 077edee039
commit 4d63ede738

View file

@ -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,