mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
fix invites
This commit is contained in:
@@ -186,14 +186,14 @@ def send_email_to_provider(notification):
|
|||||||
personalisation = redis_store.get(f"email-personalisation-{notification.id}")
|
personalisation = redis_store.get(f"email-personalisation-{notification.id}")
|
||||||
if personalisation:
|
if personalisation:
|
||||||
personalisation = personalisation.decode("utf-8")
|
personalisation = personalisation.decode("utf-8")
|
||||||
p = json.loads(personalisation)
|
|
||||||
if os.getenv("NOTIFY_ENVIRONMENT") == "staging":
|
if os.getenv("NOTIFY_ENVIRONMENT") == "staging":
|
||||||
current_app.logger.info(f"Invite personalization before {p}")
|
current_app.logger.info(f"Invite personalization before {p}")
|
||||||
p = p.replace("%5B", "")
|
p = p.replace("%5B", "")
|
||||||
p = p.replace("%5D", "")
|
p = p.replace("%5D", "")
|
||||||
if os.getenv("NOTIFY_ENVIRONMENT") == "staging":
|
if os.getenv("NOTIFY_ENVIRONMENT") == "staging":
|
||||||
current_app.logger.info(f"Invite personalization after {p}")
|
current_app.logger.info(f"Invite personalization after {p}")
|
||||||
|
p = json.loads(personalisation)
|
||||||
notification.personalisation = p
|
notification.personalisation = p
|
||||||
|
|
||||||
service = SerialisedService.from_id(notification.service_id)
|
service = SerialisedService.from_id(notification.service_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user