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

@@ -136,7 +136,7 @@ def update_user_attribute(user_id):
reply_to_text=reply_to
)
send_notification_to_queue(saved_notification, False, queue=QueueNames.NOTIFY)
send_notification_to_queue(saved_notification, queue=QueueNames.NOTIFY)
return jsonify(data=user_to_update.serialize()), 200
@@ -337,7 +337,7 @@ def create_2fa_code(template_id, user_to_send_to, secret_code, recipient, person
# Assume that we never want to observe the Notify service's research mode
# setting for this notification - we still need to be able to log into the
# admin even if we're doing user research using this service:
send_notification_to_queue(saved_notification, False, queue=QueueNames.NOTIFY)
send_notification_to_queue(saved_notification, queue=QueueNames.NOTIFY)
@user_blueprint.route('/<uuid:user_id>/change-email-verification', methods=['POST'])
@@ -365,7 +365,7 @@ def send_user_confirm_new_email(user_id):
reply_to_text=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({}), 204
@@ -404,7 +404,7 @@ def send_new_user_email_verification(user_id):
)
current_app.logger.info('Sending notification to queue')
send_notification_to_queue(saved_notification, False, queue=QueueNames.NOTIFY)
send_notification_to_queue(saved_notification, queue=QueueNames.NOTIFY)
current_app.logger.info('Sent notification to queue')
@@ -442,7 +442,7 @@ def send_already_registered_email(user_id):
current_app.logger.info('Sending notification to queue')
send_notification_to_queue(saved_notification, False, queue=QueueNames.NOTIFY)
send_notification_to_queue(saved_notification, queue=QueueNames.NOTIFY)
current_app.logger.info('Sent notification to queue')
@@ -551,7 +551,7 @@ def send_user_reset_password():
reply_to_text=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({}), 204