diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index 77888655..e70ddebd 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -5008,7 +5008,6 @@ export class CommandController extends Controller { statusReport: "DONE", })); await this.posMasterActRepository.save(data); - await Promise.all( posMasters.map(async (item) => { if (item.posMasterChild != null && item.posMasterChild.current_holderId != null) { @@ -5049,6 +5048,7 @@ export class CommandController extends Controller { createdAt: new Date(), lastUpdatedAt: new Date(), commandNo: body.refIds[0].commandNo, + refCommandNo: body.refIds[0].commandNo, commandYear: body.refIds[0].commandYear, posNo: item.posMaster.posMasterNo, posNoAbb: shortName, @@ -5058,7 +5058,7 @@ export class CommandController extends Controller { commandName: body.refIds[0].commandName, remark: body.refIds[0].remark, }; - + const dataAct = new ProfileActposition(); Object.assign(dataAct, metaAct); const historyAct = new ProfileActpositionHistory();