outgoing webhook system: Minor fixes.

This fixes some error message strings and skips converting request_data
into json. From now, conversion would be the responsibility of interface.
Also, base_url is now not passed into event structure.
This commit is contained in:
vaibhav
2017-07-21 10:28:44 +05:30
committed by Tim Abbott
parent ff63f0b1d3
commit 87dcd5442a
3 changed files with 9 additions and 9 deletions

View File

@@ -466,7 +466,6 @@ class OutgoingWebhookWorker(QueueProcessingWorker):
services = get_bot_services(event['user_profile_id'])
for service in services:
dup_event['service_name'] = str(service.name)
dup_event['base_url'] = str(service.base_url)
service_handler = get_outgoing_webhook_service_handler(service)
rest_operation, request_data = service_handler.process_event(dup_event)
do_rest_call(rest_operation, request_data, dup_event, service_handler)