added stale agent function

sig-changes^2
Joshua Collins 4 years ago
parent f9d6aed78d
commit 1a19d9b6f7
  1. 2
      app/store/agents.js

@ -63,7 +63,7 @@ const Agents = () => {
obj.getAllAgents = () => {
obj.agents.forEach(agent => {
const lbd = moment(agent.last_beacon_date, , 'MM DD YYYY, hh:mm:SS A')
const lbd = moment(agent.last_beacon_date, 'MM DD YYYY, hh:mm:SS A')
const diff = (lbd.diff(moment(), 'second') * -1)
if (diff > agent.interval) {
agent.status = false

Loading…
Cancel
Save