implements #3025 - Add request ID to outbound webhook requests

This commit is contained in:
John Anderson
2019-03-24 15:35:42 -04:00
parent a54d906be2
commit b1351be750
4 changed files with 8 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ from extras.constants import WEBHOOK_CT_JSON, WEBHOOK_CT_X_WWW_FORM_ENCODED, OBJ
@job('default')
def process_webhook(webhook, data, model_name, event, timestamp, username):
def process_webhook(webhook, data, model_name, event, timestamp, username, request_id):
"""
Make a POST request to the defined Webhook
"""
@@ -19,6 +19,7 @@ def process_webhook(webhook, data, model_name, event, timestamp, username):
'timestamp': timestamp,
'model': model_name,
'username': username,
'request_id': request_id,
'data': data
}
headers = {