Rename whitelist DAO functions

To reflect the new name of the feature.
This commit is contained in:
Chris Hill-Scott
2020-07-28 10:18:47 +01:00
parent 7d09599bc5
commit 6384b9ef4f
5 changed files with 23 additions and 23 deletions

View File

@@ -2,16 +2,16 @@ from app import db
from app.models import ServiceWhitelist
def dao_fetch_service_whitelist(service_id):
def dao_fetch_service_guest_list(service_id):
return ServiceWhitelist.query.filter(
ServiceWhitelist.service_id == service_id).all()
def dao_add_and_commit_whitelisted_contacts(objs):
def dao_add_and_commit_guest_list_contacts(objs):
db.session.add_all(objs)
db.session.commit()
def dao_remove_service_whitelist(service_id):
def dao_remove_service_guest_list(service_id):
return ServiceWhitelist.query.filter(
ServiceWhitelist.service_id == service_id).delete()