Resolve #3158
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user