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)