diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index a1d8b781..d63f83c0 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -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",