fix: typo

This commit is contained in:
Methapon2001 2024-06-11 13:03:24 +07:00
parent f7c916b84a
commit 2c6586d9ee

View file

@ -89,7 +89,7 @@ export class ProductType extends Controller {
update: { value: { increment: 1 } },
});
return await tx.productGroup.create({
return await tx.productType.create({
data: {
...body,
code: `T${productGroup.code}${last.value.toString().padStart(2, "0")}`,