mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-02 17:48:36 -04:00
fix core daos
This commit is contained in:
@@ -449,12 +449,12 @@ def test_save_notification_creates_sms(sample_template, sample_job):
|
|||||||
|
|
||||||
def _get_notification_query_all():
|
def _get_notification_query_all():
|
||||||
stmt = select(Notification)
|
stmt = select(Notification)
|
||||||
return db.execute(stmt).scalars().all()
|
return db.session.execute(stmt).scalars().all()
|
||||||
|
|
||||||
|
|
||||||
def _get_notification_query_one():
|
def _get_notification_query_one():
|
||||||
stmt = select(Notification)
|
stmt = select(Notification)
|
||||||
return db.execute(stmt).scalars().one()
|
return db.session.execute(stmt).scalars().one()
|
||||||
|
|
||||||
|
|
||||||
def _get_notification_query_count():
|
def _get_notification_query_count():
|
||||||
|
|||||||
Reference in New Issue
Block a user