新建站点时检查子域名时包含所有状态

This commit is contained in:
jingrow 2025-09-07 15:50:36 +08:00
parent 25e196b38e
commit 4c740d5621
4 changed files with 1 additions and 4 deletions

View File

@ -129,7 +129,6 @@ def check_subdomain_availability(subdomain):
{
"subdomain": subdomain,
"domain": get_jerp_domain(),
"status": ("!=", "Archived"),
},
)
)

View File

@ -200,7 +200,6 @@ def check_subdomain_availability(subdomain, app):
{
"subdomain": subdomain,
"domain": get_saas_domain(app),
"status": ("!=", "Archived"),
},
)
)

View File

@ -156,7 +156,7 @@ def exists(subdomain, domain) -> bool:
jingrow.db.exists("Blocked Domain", {"name": subdomain, "root_domain": domain})
or jingrow.db.exists(
"Code Server",
{"subdomain": subdomain, "domain": domain, "status": ("!=", "Archived")},
{"subdomain": subdomain, "domain": domain},
)
)

View File

@ -2687,7 +2687,6 @@ class Site(Document, TagHelpers):
{
"subdomain": subdomain,
"domain": domain,
"status": ("!=", "Archived"),
},
)
)