reverse
This commit is contained in:
parent
92de3059b2
commit
a828693d2e
2 changed files with 5 additions and 5 deletions
|
|
@ -151,7 +151,7 @@ async function main() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// ตั้งค่า Express routes
|
// ตั้งค่า Express routes
|
||||||
app.get('/', (req, res) => {
|
app.get('/', (req, res) => {
|
||||||
res.send('Hello from Express!');
|
res.send('Hello from Express!');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ import { viewRegistryOfficer } from "../entities/view/viewRegistryOfficer";
|
||||||
import { viewRegistryEmployee } from "../entities/view/viewRegistryEmployee";
|
import { viewRegistryEmployee } from "../entities/view/viewRegistryEmployee";
|
||||||
import { EmployeeTempPosMaster } from "../entities/EmployeeTempPosMaster";
|
import { EmployeeTempPosMaster } from "../entities/EmployeeTempPosMaster";
|
||||||
|
|
||||||
import { WebSocket } from "ws";
|
// import { WebSocket } from "ws";
|
||||||
import { wss } from "../app";
|
// import { wss } from "../app";
|
||||||
|
|
||||||
@Route("api/v1/org/report")
|
@Route("api/v1/org/report")
|
||||||
@Tags("Report")
|
@Tags("Report")
|
||||||
|
|
@ -3542,7 +3542,7 @@ export class ReportController extends Controller {
|
||||||
}
|
}
|
||||||
// console.log(">>",data);
|
// console.log(">>",data);
|
||||||
|
|
||||||
wss.clients.forEach((client: any) => {
|
// wss.clients.forEach((client: any) => {
|
||||||
// if (client.readyState === WebSocket.OPEN) {
|
// if (client.readyState === WebSocket.OPEN) {
|
||||||
// const message = JSON.stringify({ template: "report2", reportName: "report2", data: { data } });
|
// const message = JSON.stringify({ template: "report2", reportName: "report2", data: { data } });
|
||||||
// console.log("📤 Sending data to client:", message);
|
// console.log("📤 Sending data to client:", message);
|
||||||
|
|
@ -3552,7 +3552,7 @@ export class ReportController extends Controller {
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
return new HttpSuccess({ template: "report2", reportName: "report2", data: { data } });
|
return new HttpSuccess({ template: "report2", reportName: "report2", data: { data } });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue