diff --git a/src/controllers/product/type-controller.ts b/src/controllers/product/type-controller.ts index 9f02628..2395b96 100644 --- a/src/controllers/product/type-controller.ts +++ b/src/controllers/product/type-controller.ts @@ -118,7 +118,7 @@ export class ProductType extends Controller { throw new HttpError(HttpStatus.NOT_FOUND, "Product type cannot be found.", "data_not_found"); } - const record = await prisma.work.update({ + const record = await prisma.productType.update({ data: { ...body, updateBy: req.user.name }, where: { id: typeId }, });