fix: attribute error (#30372)

saved program attribute error in send_program_reminder_emails command
This commit is contained in:
Mubbshar Anwar
2022-05-12 12:28:53 +05:00
committed by GitHub
parent 6b8de6eb3f
commit a83c5cd447

View File

@@ -74,7 +74,7 @@ class Command(BaseCommand):
'reminder': True,
'braze_event': USER_SEND_SAVE_FOR_LATER_REMINDER_EMAIL,
}
if user and get_program_enrollment(program_uuid=saved_program.uuid, user=user):
if user and get_program_enrollment(program_uuid=saved_program.program_uuid, user=user):
continue
email_sent = send_email(saved_program.email, program_data)
if email_sent: