Explorar el Código

take into account user.notification setting in onboarding email

Son NK hace 5 años
padre
commit
f5a2eb387b
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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?",