mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-01 04:08:50 -04:00
Getting the IntegrityErrors to be OK if the data already exists in the
DB. Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -8,6 +8,7 @@ from app.config import QueueNames
|
||||
from app.dao.notifications_dao import (
|
||||
dao_create_notification,
|
||||
dao_delete_notifications_by_id,
|
||||
dao_notification_exists,
|
||||
get_notification_by_id,
|
||||
)
|
||||
from app.enums import KeyType, NotificationStatus, NotificationType
|
||||
@@ -153,6 +154,10 @@ def persist_notification(
|
||||
return notification
|
||||
|
||||
|
||||
def notification_exists(notification_id):
|
||||
return dao_notification_exists(notification_id)
|
||||
|
||||
|
||||
def send_notification_to_queue_detached(
|
||||
key_type, notification_type, notification_id, queue=None
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user