Update socket_io_provider.ts
This commit is contained in:
parent
27485dc245
commit
fa8fd8116f
|
|
@ -313,6 +313,7 @@ export class WebSocketIo {
|
||||||
let getListSystemLogs = fs
|
let getListSystemLogs = fs
|
||||||
.readdirSync('storage/system_logs')
|
.readdirSync('storage/system_logs')
|
||||||
.map((f) => 'storage/system_logs/' + f)
|
.map((f) => 'storage/system_logs/' + f)
|
||||||
|
.slice(0, 1000)
|
||||||
io.to(socket.id).emit('list_logs', getListSystemLogs)
|
io.to(socket.id).emit('list_logs', getListSystemLogs)
|
||||||
|
|
||||||
// const listHistory = await this.getHistory(data?.stationId, data?.lineId)
|
// const listHistory = await this.getHistory(data?.stationId, data?.lineId)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue