From af2464e2a08fdf5c681cfa9e5841b1a2196c953a Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 10 Mar 2025 14:14:01 +0700 Subject: [PATCH] fix --- src/controllers/OrganizationController.ts | 1 - src/controllers/ReportController.ts | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/controllers/OrganizationController.ts b/src/controllers/OrganizationController.ts index 6b684cea..8d3fc507 100644 --- a/src/controllers/OrganizationController.ts +++ b/src/controllers/OrganizationController.ts @@ -3100,7 +3100,6 @@ export class OrganizationController extends Controller { }; const orgRevision = await this.orgRevisionRepository.findOne({ where: { id } }); - console.log('orgRevision:',orgRevision); if (!orgRevision) { throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล"); diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index e91bc9da..8c2fb545 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -1341,7 +1341,7 @@ export class ReportController extends Controller { // if (!orgRevision) { // throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล"); // } - (async () => { + // (async () => { const orgRootData = await this.orgRootRepository.find({ where: { id: rootId, @@ -3533,11 +3533,11 @@ export class ReportController extends Controller { } } - const metaData = { template: "report2", reportName: "report2", data: { data } }; - sendWebSocket(metaData); - })(); + // const metaData = { template: "report2", reportName: "report2", data: { data } }; + // sendWebSocket(metaData); + // })(); - // return new HttpSuccess({ template: "report2", reportName: "report2", data: { data } }); + return new HttpSuccess({ template: "report2", reportName: "report2", data: { data } }); } /**