Skip to content

Commit

Permalink
refactor: Mail Agent Job
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Jan 7, 2025
1 parent 7368b9d commit f31aaf0
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 168 deletions.
1 change: 1 addition & 0 deletions mail/mail/doctype/mail_agent/mail_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def validate(self) -> None:
self.validate_api_key()

def on_update(self) -> None:
frappe.cache.delete_value("primary_agents")
if self.has_value_changed("enabled") or self.has_value_changed("enable_outbound"):
create_or_update_spf_dns_record()

Expand Down
Loading

0 comments on commit f31aaf0

Please sign in to comment.