mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
Merge e2e5e0e22e
into 51db59622c
This commit is contained in:
commit
3e8d908dcf
|
@ -917,9 +917,11 @@ class DocumentService:
|
||||||
|
|
||||||
# trigger async task
|
# trigger async task
|
||||||
if document_ids:
|
if document_ids:
|
||||||
document_indexing_task.delay(dataset.id, document_ids)
|
for dociment_id in document_ids:
|
||||||
|
document_indexing_task.delay(dataset.id, [dociment_id])
|
||||||
if duplicate_document_ids:
|
if duplicate_document_ids:
|
||||||
duplicate_document_indexing_task.delay(dataset.id, duplicate_document_ids)
|
for duplicate_document_id in duplicate_document_ids:
|
||||||
|
duplicate_document_indexing_task.delay(dataset.id, [duplicate_document_id])
|
||||||
|
|
||||||
return documents, batch
|
return documents, batch
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user