fix: error not found (wrong table)
This commit is contained in:
parent
077edee039
commit
4d63ede738
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ export class ProductType extends Controller {
|
||||||
) {
|
) {
|
||||||
if (
|
if (
|
||||||
body.productGroupId &&
|
body.productGroupId &&
|
||||||
!(await prisma.productType.findFirst({ where: { id: body.productGroupId } }))
|
!(await prisma.productGroup.findFirst({ where: { id: body.productGroupId } }))
|
||||||
) {
|
) {
|
||||||
throw new HttpError(
|
throw new HttpError(
|
||||||
HttpStatus.BAD_REQUEST,
|
HttpStatus.BAD_REQUEST,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue