#246 เคลีนร์ isSit

This commit is contained in:
Adisak 2026-05-28 09:08:58 +07:00
parent a678f95075
commit 399bf87ba6

View file

@ -280,7 +280,7 @@ export async function removeProfileInOrganize(profileId: string, type: string) {
await AppDataSource.getRepository(PosMaster)
.createQueryBuilder()
.update(PosMaster)
.set({ current_holderId: null })
.set({ current_holderId: null, isSit: false })
.where("id = :id", { id: findProfileInposMaster?.id })
.execute();
@ -293,7 +293,7 @@ export async function removeProfileInOrganize(profileId: string, type: string) {
await AppDataSource.getRepository(PosMaster)
.createQueryBuilder()
.update(PosMaster)
.set({ next_holderId: null })
.set({ next_holderId: null, isSit: false })
.where("id = :id", { id: findProfileInposMasterDraft?.id })
.execute();