Sfoglia il codice sorgente

take into account user.notification setting in onboarding email

Son NK 5 anni fa
parent
commit
f5a2eb387b
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      job_runner.py

+ 4 - 0
job_runner.py

@@ -37,6 +37,10 @@ def new_app():
 
 
 def onboarding_1(user):
+    if not user.notification:
+        LOG.d("User %s disable notification setting", user)
+        return
+
     send_email(
         user.email,
         f"Do you know you can send emails to anyone from your alias?",