Skip to content

Commit

Permalink
fix: use webhook data & headers from original Webhook doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yjane99 committed Nov 29, 2024
1 parent f0f0b8c commit 0fc19a8
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 0fc19a8

Please sign in to comment.