feat(domains): support username root domain claims
Build and publish Docker image / build-and-publish (push) Successful in 9s

This commit is contained in:
wfalkowski committed 2026-10-20 18:14:30 +00:00
1 parent 2768f5f97d
commit 079140ce49
4 files changed
+19 -14

No files matched your search

+2 -2
View File
@@ -258,9 +258,9 @@ def apply_plan(api: DeSec, namespaces: Iterable[str], copies: List[Dict],
UPDATE user_domains
SET record_type = ?, ip_address = ?, ttl = 3600
WHERE COALESCE(is_custom, FALSE) = FALSE
AND lower(full_domain) LIKE ? ESCAPE '!'
AND (lower(full_domain) = ? OR lower(full_domain) LIKE ? ESCAPE '!')
""",
('CNAME', api.base_domain, pattern),
('CNAME', api.base_domain, f'{namespace}.{api.base_domain}', pattern),
)
connection.commit()