mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
change create notification to an upsert
This commit is contained in:
@@ -71,7 +71,9 @@ def dao_create_notification(notification):
|
|||||||
# notify-api-742 remove phone numbers from db
|
# notify-api-742 remove phone numbers from db
|
||||||
notification.to = "1"
|
notification.to = "1"
|
||||||
notification.normalised_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):
|
def country_records_delivery(phone_prefix):
|
||||||
|
|||||||
Reference in New Issue
Block a user