Skip to content

Commit

Permalink
Delete RelayAddress and hash the domain
Browse files Browse the repository at this point in the history
If the domain is the not the default domain
  • Loading branch information
say-yawn committed Jul 29, 2021
1 parent c8a0310 commit 3a45102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emails/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def __str__(self):
def delete(self, *args, **kwargs):
# TODO: create hard bounce receipt rule in AWS for the address
deleted_address = DeletedAddress.objects.create(
address_hash=address_hash(self.address),
address_hash=address_hash(self.address, domain=self.domain),
num_forwarded=self.num_forwarded,
num_blocked=self.num_blocked,
num_spam=self.num_spam,
Expand Down

0 comments on commit 3a45102

Please sign in to comment.