diff options
Diffstat (limited to 'src/server/api/stream')
| -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); |