Browse Source

fix: don't run webhook in migrate

version-14
Raffael Meyer 3 years ago
committed by GitHub
parent
commit
829475a98d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/integrations/doctype/webhook/__init__.py

+ 1
- 1
frappe/integrations/doctype/webhook/__init__.py View File

@@ -7,7 +7,7 @@ import frappe

def run_webhooks(doc, method):
'''Run webhooks for this method'''
if frappe.flags.in_import or frappe.flags.in_patch or frappe.flags.in_install:
if frappe.flags.in_import or frappe.flags.in_patch or frappe.flags.in_install or frappe.flags.in_migrate:
return

if frappe.flags.webhooks_executed is None:


Loading…
Cancel
Save