last seen inside profile
This commit is contained in:
parent
8c5026d887
commit
cbf6e9809e
1 changed files with 9 additions and 0 deletions
|
|
@ -37,6 +37,15 @@ const lastSeenNode = user => {
|
|||
logger.error(`Error inside lastSeenNode job: ${ack.err}`)
|
||||
}
|
||||
})
|
||||
|
||||
user
|
||||
.get(Key.PROFILE)
|
||||
.get(Key.LAST_SEEN_NODE)
|
||||
.put(Date.now(), ack => {
|
||||
if (ack.err) {
|
||||
logger.error(`Error inside lastSeenNode job: ${ack.err}`)
|
||||
}
|
||||
})
|
||||
}
|
||||
}, LAST_SEEN_NODE_INTERVAL)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue