Skip to content

Commit

Permalink
fix(Emails): Template Transactional: remove result() call (#1379)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Aug 5, 2024
1 parent b440362 commit 1809f5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lemarche/conversations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,14 @@ def send_transactional_email(
"from_name": from_name,
}
if self.source == conversation_constants.SOURCE_MAILJET:
result = api_mailjet.send_transactional_email_with_template(**args)
api_mailjet.send_transactional_email_with_template(**args)
elif self.source == conversation_constants.SOURCE_BREVO:
result = api_brevo.send_transactional_email_with_template(**args)
api_brevo.send_transactional_email_with_template(**args)
# create log
self.create_send_log(
recipient_content_object=recipient_content_object,
parent_content_object=parent_content_object,
extra_data={"source": self.source, "args": args, "response": result()},
extra_data={"source": self.source, "args": args}, # "response": result()
)


Expand Down

0 comments on commit 1809f5c

Please sign in to comment.