From 961677cb19ff5fb624b0be14444164880e45d9b7 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 8 Feb 2024 17:06:21 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9C=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=95=E0=B9=89=E0=B8=AD=E0=B8=87=E0=B9=80=E0=B8=8A=E0=B9=87?= =?UTF-8?q?=E0=B8=84=E0=B8=84=E0=B9=88=E0=B8=B2=E0=B8=A7=E0=B9=88=E0=B8=B2?= =?UTF-8?q?=E0=B8=87=20next=5FholderId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/OrganizationController.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/controllers/OrganizationController.ts b/src/controllers/OrganizationController.ts index b52b2768..b4761871 100644 --- a/src/controllers/OrganizationController.ts +++ b/src/controllers/OrganizationController.ts @@ -1581,9 +1581,11 @@ export class OrganizationController extends Controller { where: { orgRevisionId: orgRevisionDraft.id }, }); posMaster.forEach(async (item) => { - item.current_holderId = item.next_holderId; - item.next_holderId = null; - await this.posMasterRepository.save(item); + // if(item.next_holderId != null){ + item.current_holderId = item.next_holderId; + item.next_holderId = null; + await this.posMasterRepository.save(item); + // } }); return new HttpSuccess();