[email] Fix mda

This commit is contained in:
Cathy Hu 2020-09-11 22:19:51 +02:00
parent 4edaeb706a
commit 906dba0c83

View file

@ -52,7 +52,7 @@ class Main:
exit(1) exit(1)
maybe_subscriber = await EmailSubscribers.objects.filter(email=sender).all() maybe_subscriber = await EmailSubscribers.objects.filter(email=sender).all()
if len(maybe_subscriber) != 1 or maybe_subscriber[0].hood.id != email.id: if len(maybe_subscriber) != 1 or maybe_subscriber[0].hood.id != email.hood.id:
logger.error('Not a subscriber') logger.error('Not a subscriber')
exit(1) exit(1)