adding back a removed comment while sqlalchemy 2.0 upgrade

This commit is contained in:
Aditi Anand
2024-04-24 16:35:03 -04:00
parent ad55eef5e9
commit f2fb407216

View File

@@ -191,6 +191,8 @@ def get_user_and_accounts(user_id):
return (
User.query.filter(User.id == user_id)
.options(
# eagerly load the user's services and organizations, and also the service's org and vice versa
# (so we can see if the user knows about it)
joinedload(User.services).joinedload(Service.organization),
joinedload(User.organizations).subqueryload(Organization.services),
)