fix: wrong table ref
This commit is contained in:
parent
e6dd2c6e6e
commit
4c60c81bac
1 changed files with 1 additions and 1 deletions
|
|
@ -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 },
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue