diff --git a/crc/scripts/email.py b/crc/scripts/email.py index 5c35b46b..46e1f2e1 100644 --- a/crc/scripts/email.py +++ b/crc/scripts/email.py @@ -45,7 +45,7 @@ email(subject="My Subject", recipients="user@example.com", attachments=['Study_A recipients = self.get_email_addresses(kwargs['recipients'], study_id) 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) def do_task(self, task, study_id, workflow_id, *args, **kwargs):