mirror of
https://github.com/zulip/zulip.git
synced 2026-06-21 21:32:29 +08:00
webhooks/dialogflow: Remove default value for email parameter.
The webhook view used a default value for the email, which gave non-informative errors when the webhook is incorrectly configured without the email parameter.
This commit is contained in:
parent
97792466ec
commit
36623cddfd
@ -14,7 +14,7 @@ from zerver.models import UserProfile, get_user_profile_by_email
|
||||
@has_request_variables
|
||||
def api_dialogflow_webhook(request: HttpRequest, user_profile: UserProfile,
|
||||
payload: Dict[str, Any]=REQ(argument_type='body'),
|
||||
email: str=REQ(default='foo')) -> HttpResponse:
|
||||
email: str=REQ()) -> HttpResponse:
|
||||
status = payload["status"]["code"]
|
||||
|
||||
if status == 200:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user