From 7737f09493809a595a2c0d8a69563648daf66c3e Mon Sep 17 00:00:00 2001 From: Adisak Date: Mon, 10 Nov 2025 15:54:49 +0700 Subject: [PATCH] update --- src/interfaces/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/utils.ts b/src/interfaces/utils.ts index 78c01910..12636a36 100644 --- a/src/interfaces/utils.ts +++ b/src/interfaces/utils.ts @@ -285,7 +285,7 @@ export async function removeProfileInOrganize(profileId: string, type: string) { const findProfileInposMasterDraft = await AppDataSource.getRepository(PosMaster) .createQueryBuilder("posMaster") .where("posMaster.orgRevisionId = :orgRevisionId", { orgRevisionId: draftRevision?.id }) - .andWhere("posMaster.current_holderId = :profileId", { profileId }) + .andWhere("posMaster.next_holderId = :profileId", { profileId }) .getOne(); await AppDataSource.getRepository(PosMaster)