From 728ba1a6ff139edfa474a04b6e739d6a27e0ca3d Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 26 Sep 2024 17:25:33 +0700 Subject: [PATCH] no message --- src/controllers/CommandController.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index b1f981af..3c38a25d 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -229,6 +229,7 @@ export class CommandController extends Controller { commandAffectDate: Date | null; commandExcecuteDate: Date | null; isBangkok: boolean | null; + isAttachment: boolean | null; }, @Request() request: RequestWithUser, ) { @@ -878,7 +879,7 @@ export class CommandController extends Controller { return new HttpSuccess({ template: command.commandType.fileCover, reportName: "docx-report", - data: { _command }, + data: _command, }); } @@ -917,7 +918,7 @@ export class CommandController extends Controller { return new HttpSuccess({ template: command.commandType.fileAttachment, reportName: "xlsx-report", - data: { _command }, + data: _command, }); } }