Fix notification email in case only expiry-TTL changes

This commit is contained in:
2026-02-08 03:03:24 +01:00
parent 81ffdc9925
commit 3d658968d3
4 changed files with 9 additions and 2 deletions

View File

@@ -98,7 +98,8 @@ class EmailService:
email,
hostname,
ipv4_changed,
ipv6_changed
ipv6_changed,
expiry_ttl_changed
):
"""
Send hostname changed notification email.
@@ -131,6 +132,7 @@ class EmailService:
"ipv6_changed": ipv6_changed,
"ipv6": hostname.last_ipv6,
"last_ipv6_update": datetime_str(hostname.last_ipv6_update),
"expiry_ttl_changed": expiry_ttl_changed,
"expiry_ttl": hostname.expiry_ttl,
}

View File

@@ -659,7 +659,8 @@ class DDNSRequestHandler(BaseHTTPRequestHandler):
hostname.user.email,
hostname,
ipv4_changed,
ipv6_changed
ipv6_changed,
expiry_ttl_changed
)
except Exception as e:
logging.error(f"Sending change notification error: {e}")