Fix notification email in case only expiry-TTL changes
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user