Skip to content

Commit

Permalink
check if notification already exists to prevent duplicate insert atte…
Browse files Browse the repository at this point in the history
…mpts
  • Loading branch information
Kenneth Kehl committed Dec 2, 2024
1 parent 8e296c3 commit b072726
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/dao/notifications_dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def dao_get_last_date_template_was_used(template_id, service_id):

@autocommit
def dao_create_notification(notification):
print(f"ENTERING DAO_CREATE_NOTIFICATION FOR NOTIFICATION {notification.id}")
if not notification.id:
# need to populate defaulted fields before we create the notification history object
notification.id = create_uuid()
Expand Down

0 comments on commit b072726

Please sign in to comment.