Skip to content

Commit bd87528

Browse files
JohnJyongNov1c444
authored andcommitted
fix update_by_api batch field issue (#10001)
1 parent ecb04e6 commit bd87528

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)