change create notification to an upsert

This commit is contained in:
Kenneth Kehl
2024-12-03 12:44:57 -08:00
parent fe033b0d7b
commit ed30a85bc8

View File

@@ -71,7 +71,9 @@ def dao_create_notification(notification):
# notify-api-742 remove phone numbers from db
notification.to = "1"
notification.normalised_to = "1"
db.session.add(notification)
# notify-api-1454 change to an upsert
db.session.merge(notification)
def country_records_delivery(phone_prefix):