fix: upload files error
This commit is contained in:
parent
fb8269c8fc
commit
ef6ae81c8c
1 changed files with 1 additions and 1 deletions
|
|
@ -293,7 +293,7 @@ async def upload_file(
|
|||
if "flows" in data:
|
||||
flow_list = FlowListCreate(**data)
|
||||
else:
|
||||
flow_list = FlowListCreate(flows=[FlowCreate(**flow) for flow in data])
|
||||
flow_list = FlowListCreate(flows=[FlowCreate(**data)])
|
||||
# Now we set the user_id for all flows
|
||||
for flow in flow_list.flows:
|
||||
flow.user_id = current_user.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue