Skip to content

Commit e744797

Browse files
authored
fix update_by_api batch field issue (#10001)
1 parent 9ebd453 commit e744797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/controllers/service_api/dataset/document.py

+1-1
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)