From de2b0224d648d8648fbac3eb5db6af2379c30fec Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 24 Nov 2018 07:04:29 +0900 Subject: Resolve #3158 --- src/server/api/stream/index.ts | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/server/api/stream/index.ts') 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 @@ -77,16 +76,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; -- cgit v1.2.3-freya