From b605c742622d59141128b4dbe507a1f287497e2d Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Mon, 7 Apr 2025 12:48:35 -0700 Subject: [PATCH] fix invites --- app/delivery/send_to_providers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/delivery/send_to_providers.py b/app/delivery/send_to_providers.py index 9dcb530f3..3e9eb51e0 100644 --- a/app/delivery/send_to_providers.py +++ b/app/delivery/send_to_providers.py @@ -185,7 +185,7 @@ def send_email_to_provider(notification): recipient = recipient.decode("utf-8") personalisation = redis_store.get(f"email-personalisation-{notification.id}") if personalisation: - personalisation = personalisation.decode("utf-8") + p = personalisation.decode("utf-8") if os.getenv("NOTIFY_ENVIRONMENT") == "staging": current_app.logger.info(f"Invite personalization before {p}") @@ -193,7 +193,7 @@ def send_email_to_provider(notification): p = p.replace("%5D", "") if os.getenv("NOTIFY_ENVIRONMENT") == "staging": current_app.logger.info(f"Invite personalization after {p}") - p = json.loads(personalisation) + p = json.loads(p) notification.personalisation = p service = SerialisedService.from_id(notification.service_id)