mirror of
https://github.com/simple-login/app.git
synced 2025-10-06 05:17:41 +08:00
fix
This commit is contained in:
parent
77bfa67402
commit
eb6647d62e
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ def delete_alias(alias: Alias, user: User):
|
||||||
"""
|
"""
|
||||||
# save deleted alias to either global or domain trash
|
# save deleted alias to either global or domain trash
|
||||||
if alias.custom_domain_id:
|
if alias.custom_domain_id:
|
||||||
if DomainDeletedAlias.get_by(
|
if not DomainDeletedAlias.get_by(
|
||||||
email=alias.email, domain_id=alias.custom_domain_id
|
email=alias.email, domain_id=alias.custom_domain_id
|
||||||
):
|
):
|
||||||
LOG.debug("add %s to domain %s trash", alias, alias.custom_domain_id)
|
LOG.debug("add %s to domain %s trash", alias, alias.custom_domain_id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue