Fix: create dataset return type inconsistent (#11272)

### What problem does this PR solve?

Fix: create dataset return type inconsistent #11167 
 
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Billy Bao
2025-11-17 15:27:19 +08:00
committed by GitHub
parent 6b64641042
commit 0569b50fed
3 changed files with 15 additions and 11 deletions

View File

@ -55,6 +55,10 @@ def create():
**req
)
code = req.get("code")
if code:
return get_data_error_result(code=code, message=req.get("message"))
try:
if not KnowledgebaseService.save(**req):
return get_data_error_result()