fix: wrong table ref

This commit is contained in:
Methapon2001 2024-06-12 13:42:03 +07:00
parent e6dd2c6e6e
commit 4c60c81bac

View file

@ -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 },
});