From 6475b96f9f30c130303ae6cf54b2d29913b7a73c Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 7 Mar 2025 12:43:55 +0700 Subject: [PATCH] ws test 2 --- src/controllers/ProfileController.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 6baff7d5..a7ee3304 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -78,8 +78,6 @@ import { ProfileDuty } from "../entities/ProfileDuty"; import { ProfileAssessment } from "../entities/ProfileAssessment"; import { ProfileAbility } from "../entities/ProfileAbility"; -import { sendWebSocket } from "../services/webSocket"; - @Route("api/v1/org/profile") @Tags("Profile") @Security("bearerAuth") @@ -1646,15 +1644,12 @@ export class ProfileController extends Controller { profileAbility, otherIncome }; - const metaData = { template: "new_kk1", + + return new HttpSuccess({ + template: "new_kk1", reportName: "docx-report", - data: data}; - sendWebSocket(metaData) - // return new HttpSuccess({ - // template: "new_kk1", - // reportName: "docx-report", - // data: data, - // }); + data: data, + }); } /**