From 2c6586d9eebd20954b2755722173608f851001a3 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 11 Jun 2024 13:03:24 +0700 Subject: [PATCH] fix: typo --- src/controllers/product/type-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/product/type-controller.ts b/src/controllers/product/type-controller.ts index e570a7d..51ed992 100644 --- a/src/controllers/product/type-controller.ts +++ b/src/controllers/product/type-controller.ts @@ -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")}`,