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 } }); } /**