Update
This commit is contained in:
parent
13da878026
commit
68408b7cd3
@ -3,10 +3,12 @@ const moment = require('moment')
|
||||
const Agents = () => {
|
||||
const obj = {}
|
||||
obj.agents = []
|
||||
obj._agentId = 0
|
||||
|
||||
obj.addAgent = (os, ip, profile, interval) => {
|
||||
const agent = {}
|
||||
agent.id = obj.agents.length + 1
|
||||
obj._agentId += 1
|
||||
agent.id = obj._agentId
|
||||
agent.os = os
|
||||
agent.ip = ip
|
||||
agent.profile = profile
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user