mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user