From a7702d8599f13155552d599cd5a243d59ddd6c10 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 2 Aug 2024 14:50:07 +0700 Subject: [PATCH] refactor: do not update parent status to active --- src/controllers/customer-branch-controller.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/controllers/customer-branch-controller.ts b/src/controllers/customer-branch-controller.ts index 5a8de8a..a08baf4 100644 --- a/src/controllers/customer-branch-controller.ts +++ b/src/controllers/customer-branch-controller.ts @@ -329,11 +329,6 @@ export class CustomerBranchController extends Controller { { isolationLevel: Prisma.TransactionIsolationLevel.Serializable }, ); - await prisma.customer.updateMany({ - where: { id: customerId, status: Status.CREATED }, - data: { status: Status.ACTIVE }, - }); - this.setStatus(HttpStatus.CREATED); return record;