Skip to content

Commit 2471bd8

Browse files
committed
Fix user root_locations to show all root locations not just those with organizations
1 parent d0714ba commit 2471bd8

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎backend/api/types/user.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ async def root_locations(
101101
models.user_root_locations,
102102
models.LocationNode.id == models.user_root_locations.c.location_id,
103103
)
104-
.join(
105-
models.location_organizations,
106-
models.LocationNode.id == models.location_organizations.c.location_id,
107-
)
108104
.where(models.user_root_locations.c.user_id == self.id)
109105
.where(models.LocationNode.parent_id.is_(None))
110106
.distinct()

0 commit comments

Comments
 (0)