Skip to content

Commit

Permalink
Resolve SELECT cartesian product warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhlidongming authored and ogabrielluiz committed Oct 30, 2024
1 parent d38e79b commit 2946f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/base/langflow/api/v1/folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async def delete_folder(
current_user: CurrentActiveUser,
):
try:
flows = session.exec(select(Flow).where(Flow.folder_id == folder_id, Folder.user_id == current_user.id)).all()
flows = session.exec(select(Flow).where(Flow.folder_id == folder_id, Flow.user_id == current_user.id)).all()
if len(flows) > 0:
for flow in flows:
await cascade_delete_flow(session, flow)
Expand Down

0 comments on commit 2946f55

Please sign in to comment.