To validate get_email_data

This commit is contained in:
mike cullerton 2021-10-26 15:27:24 -04:00
parent f88aba1db0
commit a65c104a0b
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ email(subject="My Subject", recipients="user@example.com", attachments=['Study_A
recipients = self.get_email_addresses(kwargs['recipients'], study_id) recipients = self.get_email_addresses(kwargs['recipients'], study_id)
content, content_html = EmailService().get_rendered_content(task.task_spec.documentation, task.data) content, content_html = EmailService().get_rendered_content(task.task_spec.documentation, task.data)
email_model = EmailModel(subject=subject, recipients=recipients, content=content, content_html=content_html, timestamp=datetime.datetime.utcnow()) email_model = EmailModel(id=1, subject=subject, recipients=recipients, content=content, content_html=content_html, timestamp=datetime.datetime.utcnow())
return EmailModelSchema().dump(email_model) return EmailModelSchema().dump(email_model)
def do_task(self, task, study_id, workflow_id, *args, **kwargs): def do_task(self, task, study_id, workflow_id, *args, **kwargs):