fix #708 รายชื่อที่ถูกลบไม่แสดงในระบบโครงสร้าง

This commit is contained in:
Bright 2024-10-31 15:18:46 +07:00
parent e974821777
commit c3044ac0b4

View file

@ -3121,7 +3121,7 @@ export class CommandController extends Controller {
}[];
},
) {
const posMasters = await this.posMasterRepository.find({ where: { id: In(body.refIds) } });
const posMasters = await this.posMasterRepository.find({ where: { id: In(body.refIds.map(x => x.refId)) } });
const data = posMasters.map((_data) => ({
..._data,
statusReport: "PENDING",