mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Optimize updating oauth tokens activity
This commit is contained in:
parent
efa32646ed
commit
bbc1afada5
4 changed files with 10 additions and 14 deletions
|
@ -13,8 +13,7 @@ export function authenticate (req: express.Request, res: express.Response, next:
|
|||
res.locals.oauth = { token }
|
||||
res.locals.authenticated = true
|
||||
|
||||
UpdateTokenSessionScheduler.Instance.addToUpdate({
|
||||
id: token.id,
|
||||
UpdateTokenSessionScheduler.Instance.addToUpdate(token.id, {
|
||||
lastActivityDate: new Date(),
|
||||
lastActivityIP: req.ip,
|
||||
lastActivityDevice: req.header('user-agent')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue