Skip to content

Commit

Permalink
Add missing session.add(flow) to ensure flow is added to the session …
Browse files Browse the repository at this point in the history
…before commit
  • Loading branch information
ogabrielluiz committed Nov 22, 2024
1 parent 7e8bea7 commit cbf92a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/base/langflow/services/database/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ async def assign_orphaned_flows_to_superuser(self) -> None:
flow.user_id = superuser.id
flow.name = self._generate_unique_flow_name(flow.name, existing_names)
existing_names.add(flow.name)
session.add(flow)

# Commit changes
await session.commit()
Expand Down

0 comments on commit cbf92a2

Please sign in to comment.