Skip to content

Commit

Permalink
Merge pull request #1168 from The-Commit-Company/1138-webhooks-sendin…
Browse files Browse the repository at this point in the history
…g-empty-body

fix: use webhook data & headers from original Webhook doc
  • Loading branch information
nikkothari22 authored Nov 29, 2024
2 parents f0f0b8c + 0fc19a8 commit 0cc5122
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions raven/raven_integrations/doctype/raven_webhook/raven_webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,12 @@ def update_webhook(self):
webhook_doc.save()

def set_webhook_data_and_headers(self, webhook_doc):
# Set the webhook data and headers

# get the existing webhook data and headers
webhook_header = webhook_doc.get("webhook_headers", [])
webhook_data = webhook_doc.get("webhook_data", [])

'''
Set the webhook data and headers
'''
# get the existing webhook data and headers keys
webhook_data_keys = [data.key for data in self.webhook_data]
webhook_header_keys = [data.key for data in self.webhook_headers]
webhook_data_keys = [data.key for data in webhook_doc.webhook_data]
webhook_header_keys = [data.key for data in webhook_doc.webhook_headers]

# remove the existing webhook data and headers
# which are not in the current webhook data and headers
Expand Down

0 comments on commit 0cc5122

Please sign in to comment.