Browse Source

fix(integrations): stop overwriting important comment data (#37969)

Vignesh P 2 years ago
parent
commit
14c9afb1c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sentry/tasks/sentry_functions.py

+ 1 - 1
src/sentry/tasks/sentry_functions.py

@@ -18,7 +18,7 @@ TASK_OPTIONS = {
 )
 def send_sentry_function_webhook(sentry_function_id, event, issue_id, data=None):
     try:
-        data[event.split(".")[0]] = serialize(Group.objects.get(id=issue_id))
+        data["issue"] = serialize(Group.objects.get(id=issue_id))
     except Group.DoesNotExist:
         pass
     publish_message(sentry_function_id, json.dumps({"data": data, "type": event}).encode())