mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
fix broken go live email notification
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import json
|
||||
|
||||
from flask import current_app
|
||||
|
||||
from app import redis_store
|
||||
from app.config import QueueNames
|
||||
from app.dao.services_dao import (
|
||||
dao_fetch_active_users_for_service,
|
||||
@@ -40,7 +43,17 @@ def send_notification_to_service_users(
|
||||
key_type=KeyType.NORMAL,
|
||||
reply_to_text=notify_service.get_default_reply_to_email_address(),
|
||||
)
|
||||
redis_store.set(
|
||||
f"email-personalisation-{notification.id}",
|
||||
json.dumps(personalisation),
|
||||
ex=24 * 60 * 60,
|
||||
)
|
||||
redis_store.set(
|
||||
f"email-recipient-{notification.id}", notification.to, ex=24 * 60 * 60
|
||||
)
|
||||
|
||||
send_notification_to_queue(notification, queue=QueueNames.NOTIFY)
|
||||
return notification
|
||||
|
||||
|
||||
def _add_user_fields(user, personalisation, fields):
|
||||
|
||||
Reference in New Issue
Block a user