diff --git a/frappe/patches/v15_0/validate_newsletter_recipients.py b/frappe/patches/v15_0/validate_newsletter_recipients.py index cee696f9e9..61749d3df8 100644 --- a/frappe/patches/v15_0/validate_newsletter_recipients.py +++ b/frappe/patches/v15_0/validate_newsletter_recipients.py @@ -6,3 +6,4 @@ def execute(): for name, email in frappe.get_all("Email Group Member", fields=["name", "email"], as_list=True): if not validate_email_address(email, throw=False): frappe.db.set_value("Email Group Member", name, "unsubscribed", 1) + frappe.db.commit()