Skip to content

Commit

Permalink
fix(agent-job-notifs): team being set to random for sites
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Nov 4, 2024
1 parent e58694c commit ed3d51c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions press/press/doctype/agent_job/agent_job_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ def send_job_failure_notification(job: "Agent Job"):
notification_type = get_notification_type(job)
team = None

if site_team := frappe.get_value("Site", job.site, "team"):
team = site_team
if job.site:
team = frappe.get_value("Site", job.site, "team")
else:
if job.server_type not in ["Server", "Database Server"]:
return
Expand Down

0 comments on commit ed3d51c

Please sign in to comment.