Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use webhook data & headers from original Webhook doc #1168

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading