diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-24 07:04:29 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-24 07:04:29 +0900 |
| commit | de2b0224d648d8648fbac3eb5db6af2379c30fec (patch) | |
| tree | 3d86f3e589d1e65876a95c7b30357beaad787377 /src/server/api/stream/index.ts | |
| parent | :art: (diff) | |
| download | sharkey-de2b0224d648d8648fbac3eb5db6af2379c30fec.tar.gz sharkey-de2b0224d648d8648fbac3eb5db6af2379c30fec.tar.bz2 sharkey-de2b0224d648d8648fbac3eb5db6af2379c30fec.zip | |
Resolve #3158
Diffstat (limited to 'src/server/api/stream/index.ts')
| -rw-r--r-- | src/server/api/stream/index.ts | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/server/api/stream/index.ts b/src/server/api/stream/index.ts index 58dbacd688..3119e20af8 100644 --- a/src/server/api/stream/index.ts +++ b/src/server/api/stream/index.ts @@ -46,7 +46,6 @@ export default class Connection { switch (type) { case 'api': this.onApiRequest(body); break; - case 'alive': this.onAlive(); break; case 'readNotification': this.onReadNotification(body); break; case 'subNote': this.onSubscribeNote(body); break; case 'sn': this.onSubscribeNote(body); break; // alias @@ -78,16 +77,6 @@ export default class Connection { } @autobind - private onAlive() { - // Update lastUsedAt - User.update({ _id: this.user._id }, { - $set: { - 'lastUsedAt': new Date() - } - }); - } - - @autobind private onReadNotification(payload: any) { if (!payload.id) return; readNotification(this.user._id, payload.id); |