Skip to content

Commit 1412fa6

Browse files
JohnJyongJunXu01
authored andcommitted
fix update_by_api batch field issue (langgenius#10001)
1 parent 2b86d66 commit 1412fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/controllers/service_api/dataset/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def post(self, tenant_id, dataset_id, document_id):
230230
except ProviderTokenNotInitError as ex:
231231
raise ProviderNotInitializeError(ex.description)
232232
document = documents[0]
233-
documents_and_batch_fields = {"document": marshal(document, document_fields), "batch": batch}
233+
documents_and_batch_fields = {"document": marshal(document, document_fields), "batch": document.batch}
234234
return documents_and_batch_fields, 200
235235

236236

0 commit comments

Comments
 (0)