notify-api-433b remove research mode

This commit is contained in:
Kenneth Kehl
2023-08-25 12:09:00 -07:00
parent b679550d97
commit 5a350560d7
32 changed files with 88 additions and 305 deletions

View File

@@ -539,7 +539,6 @@ def get_detailed_services(start_date, end_date, only_active=False, include_from_
'id': str(rows[0].service_id),
'name': rows[0].name,
'notification_type': rows[0].notification_type,
'research_mode': rows[0].research_mode,
'restricted': rows[0].restricted,
'active': rows[0].active,
'created_at': rows[0].created_at,
@@ -692,7 +691,7 @@ def verify_reply_to_email_address(service_id):
reply_to_text=notify_service.get_default_reply_to_email_address()
)
send_notification_to_queue(saved_notification, False, queue=QueueNames.NOTIFY)
send_notification_to_queue(saved_notification, queue=QueueNames.NOTIFY)
return jsonify(data={"id": saved_notification.id}), 201

View File

@@ -81,7 +81,6 @@ def send_one_off_notification(service_id, post_data):
send_notification_to_queue(
notification=notification,
research_mode=service.research_mode,
queue=queue_name,
)

View File

@@ -34,7 +34,7 @@ def send_notification_to_service_users(service_id, template_id, personalisation=
key_type=KEY_TYPE_NORMAL,
reply_to_text=notify_service.get_default_reply_to_email_address()
)
send_notification_to_queue(notification, False, queue=QueueNames.NOTIFY)
send_notification_to_queue(notification, queue=QueueNames.NOTIFY)
def _add_user_fields(user, personalisation, fields):