fix: upload files error

This commit is contained in:
Fendi 2024-06-17 12:28:26 +08:00 committed by Gabriel Luiz Freitas Almeida
commit ef6ae81c8c

View file

@ -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