Skip to content

Commit

Permalink
main.py: Remove reference to .profile from user
Browse files Browse the repository at this point in the history
Due updates to data model, .profile part in collection is removed. Updating code accordingly.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Nov 7, 2023
1 parent 77a7b89 commit e36faba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ async def put_node(node_id: str, node: Node,
async def _set_node_ownership_recursively(user: User, hierarchy: Hierarchy):
"""Set node ownership information for a hierarchy of nodes"""
if not hierarchy.node.owner:
hierarchy.node.owner = user.profile.username
hierarchy.node.owner = user.username
for node in hierarchy.child_nodes:
await _set_node_ownership_recursively(user, node)

Expand Down

0 comments on commit e36faba

Please sign in to comment.