This commit is contained in:
Adisak 2025-11-10 15:54:49 +07:00
parent 9eb44d1b38
commit 51c136ac1b

View file

@ -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)