ws test 3

This commit is contained in:
AdisakKanthawilang 2025-03-07 13:08:04 +07:00
parent 6475b96f9f
commit 59da031f4c

View file

@ -31,7 +31,7 @@ import { Profile } from "../entities/Profile";
import { viewRegistryOfficer } from "../entities/view/viewRegistryOfficer";
import { viewRegistryEmployee } from "../entities/view/viewRegistryEmployee";
import { EmployeeTempPosMaster } from "../entities/EmployeeTempPosMaster";
// import { sendWebSocket } from "../services/webSocket";
import { sendWebSocket } from "../services/webSocket";
@Route("api/v1/org/report")
@Tags("Report")
@ -3538,10 +3538,10 @@ 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 } });
}
/**