Update socket_io_provider.ts

This commit is contained in:
nguyentrungthat 2026-03-27 08:59:39 +07:00
parent 27485dc245
commit fa8fd8116f
1 changed files with 1 additions and 0 deletions

View File

@ -313,6 +313,7 @@ export class WebSocketIo {
let getListSystemLogs = fs
.readdirSync('storage/system_logs')
.map((f) => 'storage/system_logs/' + f)
.slice(0, 1000)
io.to(socket.id).emit('list_logs', getListSystemLogs)
// const listHistory = await this.getHistory(data?.stationId, data?.lineId)