mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 07:51:13 -05:00
sqlalchemy 2.0 changes
This commit is contained in:
@@ -178,10 +178,10 @@ def get_user_and_accounts(user_id):
|
|||||||
.options(
|
.options(
|
||||||
# eagerly load the user's services and organizations, and also the service's org and vice versa
|
# 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)
|
# (so we can see if the user knows about it)
|
||||||
joinedload("services"),
|
joinedload(User.services),
|
||||||
joinedload("organizations"),
|
joinedload(User.organizations),
|
||||||
joinedload("organizations.services"),
|
joinedload(User.organizations.services),
|
||||||
joinedload("services.organization"),
|
joinedload(User.services.organization),
|
||||||
)
|
)
|
||||||
.one()
|
.one()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user