mirror of
https://github.com/simple-login/app.git
synced 2025-11-09 17:30:44 +08:00
fix: custom_domain deleted error (#2245)
This commit is contained in:
parent
940db18383
commit
ed5e62d479
1 changed files with 2 additions and 1 deletions
|
|
@ -247,12 +247,13 @@ def process_job(job: Job):
|
|||
domain_name = custom_domain.domain
|
||||
user = custom_domain.user
|
||||
|
||||
custom_domain_partner_id = custom_domain.partner_id
|
||||
CustomDomain.delete(custom_domain.id)
|
||||
Session.commit()
|
||||
|
||||
LOG.d("Domain %s deleted", domain_name)
|
||||
|
||||
if custom_domain.partner_id is None:
|
||||
if custom_domain_partner_id is None:
|
||||
send_email(
|
||||
user.email,
|
||||
f"Your domain {domain_name} has been deleted",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue