mirror of https://github.com/zulip/zulip.git
Set add_bot_backend() config_data param default to {}.
Previously, the default was None. This caused 500s when adding a bot without adding a config_data argument.
This commit is contained in:
parent
02bc506518
commit
c0a0e6fd70
|
@ -255,8 +255,8 @@ def add_bot_backend(
|
|||
bot_type: int=REQ(validator=check_int, default=UserProfile.DEFAULT_BOT),
|
||||
payload_url: Optional[Text]=REQ(validator=check_url, default=""),
|
||||
service_name: Optional[Text]=REQ(default=None),
|
||||
config_data: Optional[Dict[Text, Text]]=REQ(default=None,
|
||||
validator=check_dict(value_validator=check_string)),
|
||||
config_data: Dict[Text, Text]=REQ(default={},
|
||||
validator=check_dict(value_validator=check_string)),
|
||||
interface_type: int=REQ(validator=check_int, default=Service.GENERIC),
|
||||
default_sending_stream_name: Optional[Text]=REQ('default_sending_stream', default=None),
|
||||
default_events_register_stream_name: Optional[Text]=REQ('default_events_register_stream',
|
||||
|
|
Loading…
Reference in New Issue