mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: coroutine object has no attribute get (#11472)
### What problem does this PR solve? Fix: coroutine object has no attribute get ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -125,8 +125,8 @@ async def upload():
|
|||||||
@validate_request("name")
|
@validate_request("name")
|
||||||
async def create():
|
async def create():
|
||||||
req = await request.json
|
req = await request.json
|
||||||
pf_id = await request.json.get("parent_id")
|
pf_id = req.get("parent_id")
|
||||||
input_file_type = await request.json.get("type")
|
input_file_type = req.get("type")
|
||||||
if not pf_id:
|
if not pf_id:
|
||||||
root_folder = FileService.get_root_folder(current_user.id)
|
root_folder = FileService.get_root_folder(current_user.id)
|
||||||
pf_id = root_folder["id"]
|
pf_id = root_folder["id"]
|
||||||
|
|||||||
Reference in New Issue
Block a user