Skip to content

Commit

Permalink
fix: custom_domain deleted error (#2245)
Browse files Browse the repository at this point in the history
  • Loading branch information
cquintana92 authored Oct 2, 2024
1 parent 940db18 commit ed5e62d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion job_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ed5e62d

Please sign in to comment.