|
|
@@ -21,7 +21,9 @@ def run_webhooks(doc, method): |
|
|
|
if webhooks is None: |
|
|
|
# query webhooks |
|
|
|
webhooks_list = frappe.get_all('Webhook', |
|
|
|
fields=["name", "`condition`", "webhook_docevent", "webhook_doctype"]) |
|
|
|
fields=["name", "`condition`", "webhook_docevent", "webhook_doctype"], |
|
|
|
filters={"enabled": "1"} |
|
|
|
) |
|
|
|
|
|
|
|
# make webhooks map for cache |
|
|
|
webhooks = {} |
|
|
|