diff --git a/app/dao/service_guest_list_dao.py b/app/dao/service_guest_list_dao.py index 59d381a8b..8e128a213 100644 --- a/app/dao/service_guest_list_dao.py +++ b/app/dao/service_guest_list_dao.py @@ -17,5 +17,4 @@ def dao_add_and_commit_guest_list_contacts(objs): def dao_remove_service_guest_list(service_id): stmt = delete(ServiceGuestList).where(ServiceGuestList.service_id == service_id) result = db.session.execute(stmt) - db.session.commit() return result.rowcount diff --git a/tests/app/test_commands.py b/tests/app/test_commands.py index a273efe8d..b4d9033b1 100644 --- a/tests/app/test_commands.py +++ b/tests/app/test_commands.py @@ -142,7 +142,7 @@ def test_update_jobs_archived_flag(notify_db_session, notify_api): def _get_organization_query_count(): - stmt = select(Organization) + stmt = select(func.count()).select_from(Organization) return db.session.execute(stmt).scalar() or 0