From a33983c530ffcd6c6952b4ba0061d49203a17d9d Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 19 Sep 2025 09:11:21 +0700 Subject: [PATCH] fix: transaction ended before create --- src/controllers/04-product-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/04-product-controller.ts b/src/controllers/04-product-controller.ts index 612275e..d58aca3 100644 --- a/src/controllers/04-product-controller.ts +++ b/src/controllers/04-product-controller.ts @@ -304,7 +304,7 @@ export class ProductController extends Controller { const listId = await flowAccount.createProducts(body); - return await prisma.product.create({ + return await tx.product.create({ include: { createdBy: true, updatedBy: true,