event_queue: Convert users argument of send_event to list.

set is not JSON serializable, and orjson enforces this.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-08-07 02:57:25 -07:00
committed by Tim Abbott
parent fe5c524890
commit 25c20a21bd
2 changed files with 3 additions and 3 deletions

View File

@@ -1184,5 +1184,5 @@ def send_event(realm: Realm, event: Mapping[str, Any],
the user/message pair."""
port = get_tornado_port(realm)
queue_json_publish(notify_tornado_queue_name(port),
dict(event=event, users=users),
dict(event=event, users=list(users)),
lambda *args, **kwargs: send_notification_http(realm, *args, **kwargs))