Handle users.demote event (#6315)
* fix: Handle users.demote event * fix: fetchAll * fix: fetch based on total
This commit is contained in:
@@ -616,6 +616,12 @@ export default class WebsocketsProcessor {
|
||||
.emit(event.name, presentTeam(team));
|
||||
}
|
||||
|
||||
case "users.demote": {
|
||||
return socketio
|
||||
.to(`user-${event.userId}`)
|
||||
.emit(event.name, { id: event.userId });
|
||||
}
|
||||
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user