mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
server_events_dispatch: Throw blueslip from realm_user based on op.
This commit is contained in:
@@ -892,4 +892,6 @@ run_test("server_event_dispatch_op_errors", () => {
|
||||
server_events_dispatch.dispatch_normal_event({type: "realm_bot", op: "other"});
|
||||
blueslip.expect("error", "Unexpected event type realm_domains/other");
|
||||
server_events_dispatch.dispatch_normal_event({type: "realm_domains", op: "other"});
|
||||
blueslip.expect("error", "Unexpected event type realm_user/other");
|
||||
server_events_dispatch.dispatch_normal_event({type: "realm_user", op: "other"});
|
||||
});
|
||||
|
||||
@@ -383,6 +383,9 @@ export function dispatch_normal_event(event) {
|
||||
case "update":
|
||||
user_events.update_person(event.person);
|
||||
break;
|
||||
default:
|
||||
blueslip.error("Unexpected event type realm_user/" + event.op);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user