From df2f1c5b12570e52ae80c751933078a472a94708 Mon Sep 17 00:00:00 2001 From: Adisak Date: Wed, 18 Feb 2026 15:57:15 +0700 Subject: [PATCH] fix --- src/controllers/CommandController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({