diff --git a/posthog/tasks/periodic_digest.py b/posthog/tasks/periodic_digest.py index c0b6995b1e91f..0c8161c1be9b2 100644 --- a/posthog/tasks/periodic_digest.py +++ b/posthog/tasks/periodic_digest.py @@ -212,7 +212,7 @@ def send_periodic_digest_report( full_report_dict = { "team_id": team_id, "team_name": team_name, - "template": "periodic_digest_report", + "template_name": "periodic_digest_report", "digest_items_with_data": digest_items_with_data, **periodic_digest_report, **instance_metadata, diff --git a/posthog/tasks/test/test_periodic_digest.py b/posthog/tasks/test/test_periodic_digest.py index 4d495eac6aa8d..a4fed64b0b8f6 100644 --- a/posthog/tasks/test/test_periodic_digest.py +++ b/posthog/tasks/test/test_periodic_digest.py @@ -113,7 +113,7 @@ def test_periodic_digest_report(self, mock_capture: MagicMock) -> None: expected_properties = { "team_id": self.team.id, "team_name": self.team.name, - "template": "periodic_digest_report", + "template_name": "periodic_digest_report", "users_who_logged_in": [], "users_who_logged_in_count": 0, "users_who_signed_up": [], @@ -227,7 +227,7 @@ def test_periodic_digest_report_custom_dates(self, mock_capture: MagicMock) -> N expected_properties = { "team_id": self.team.id, "team_name": self.team.name, - "template": "periodic_digest_report", + "template_name": "periodic_digest_report", "users_who_logged_in": [], "users_who_logged_in_count": 0, "users_who_signed_up": [],