Fix: metadata_obj issue. (#12146)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-12-24 13:40:34 +08:00
committed by GitHub
parent 6400bf87ba
commit b1efb905e5

View File

@ -397,7 +397,7 @@ async def build_chunks(task, progress_callback):
metadata = {}
for doc in docs:
metadata = update_metadata_to(metadata, doc["metadata_obj"])
del ck["metadata_obj"]
del doc["metadata_obj"]
if metadata:
e, doc = DocumentService.get_by_id(task["doc_id"])
if e: