diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index 374dd56f..34226f21 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -7387,7 +7387,7 @@ export class CommandController extends Controller { const _null: any = null; profile.employeeWage = item.amount == null ? _null : item.amount.toString(); profile.dateStart = _command ? _command.commandExcecuteDate : new Date(); - profile.dateAppoint = new Date(); + profile.dateAppoint = _command ? _command.commandExcecuteDate : new Date(); profile.amount = item.amount == null ? _null : item.amount; profile.amountSpecial = item.amountSpecial == null ? _null : item.amountSpecial; _reqBody.push({