diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-18 00:07:33 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-18 00:07:33 +0900 |
| commit | 938fcb3e5ecc6862e40c9cb85b8010af63c69181 (patch) | |
| tree | 512fa77d5b4dca9efd38af00a805c187876029fc /src/server/api/streaming.ts | |
| parent | Merge branch 'develop' (diff) | |
| parent | 12.77.0 (diff) | |
| download | misskey-938fcb3e5ecc6862e40c9cb85b8010af63c69181.tar.gz misskey-938fcb3e5ecc6862e40c9cb85b8010af63c69181.tar.bz2 misskey-938fcb3e5ecc6862e40c9cb85b8010af63c69181.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/server/api/streaming.ts')
| -rw-r--r-- | src/server/api/streaming.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/api/streaming.ts b/src/server/api/streaming.ts index 81b83edcf5..7224c23570 100644 --- a/src/server/api/streaming.ts +++ b/src/server/api/streaming.ts @@ -6,6 +6,7 @@ import { ParsedUrlQuery } from 'querystring'; import authenticate from './authenticate'; import { EventEmitter } from 'events'; import { subsdcriber as redisClient } from '../../db/redis'; +import { Users } from '@/models'; module.exports = (server: http.Server) => { // Init websocket server @@ -45,5 +46,11 @@ module.exports = (server: http.Server) => { connection.send('pong'); } }); + + if (user) { + Users.update(user.id, { + lastActiveDate: new Date(), + }); + } }); }; |