mirror of
https://github.com/simple-login/app.git
synced 2025-10-01 19:06:53 +08:00
fix POST /v2/alias/custom/new when DISABLE_ALIAS_SUFFIX is set
This commit is contained in:
parent
6f820c5fc5
commit
ee6a1a672d
1 changed files with 2 additions and 1 deletions
|
@ -170,7 +170,8 @@ def new_custom_alias_v2():
|
|||
LOG.d(f"Alias {full_alias} is currently in the {domain.domain} trash. ")
|
||||
return jsonify(error=f"alias {full_alias} in domain trash"), 409
|
||||
|
||||
custom_domain_id = domain.id
|
||||
if domain:
|
||||
custom_domain_id = domain.id
|
||||
|
||||
alias = Alias.create(
|
||||
user_id=user.id,
|
||||
|
|
Loading…
Add table
Reference in a new issue