[email] Fix mda
This commit is contained in:
parent
4edaeb706a
commit
906dba0c83
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue