mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
notify-api-742 don't write phone numbers to db
This commit is contained in:
@@ -72,7 +72,9 @@ def dao_create_notification(notification):
|
||||
notification.id = create_uuid()
|
||||
if not notification.status:
|
||||
notification.status = NOTIFICATION_CREATED
|
||||
|
||||
# notify-api-742 remove phone numbers from db
|
||||
notification.to = "1"
|
||||
notification.normalised_to = "1"
|
||||
db.session.add(notification)
|
||||
|
||||
|
||||
@@ -179,6 +181,9 @@ def update_notification_status_by_reference(reference, status):
|
||||
@autocommit
|
||||
def dao_update_notification(notification):
|
||||
notification.updated_at = datetime.utcnow()
|
||||
# notify-api-742 remove phone numbers from db
|
||||
notification.to = "1"
|
||||
notification.normalised_to = "1"
|
||||
db.session.add(notification)
|
||||
|
||||
|
||||
|
||||
@@ -401,10 +401,6 @@ def send_new_user_email_verification(user_id):
|
||||
|
||||
# when registering, we verify all users' email addresses using this function
|
||||
user_to_send_to = get_user_by_id(user_id=user_id)
|
||||
current_app.logger.info("user_to_send_to is {}".format(user_to_send_to))
|
||||
current_app.logger.info(
|
||||
"user_to_send_to.email_address is {}".format(user_to_send_to.email_address)
|
||||
)
|
||||
|
||||
template = dao_get_template_by_id(
|
||||
current_app.config["NEW_USER_EMAIL_VERIFICATION_TEMPLATE_ID"]
|
||||
|
||||
Reference in New Issue
Block a user