mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-16 00:19:32 -06:00
Ah, index should handle delete, update root when version changed
This commit is contained in:
@@ -722,6 +722,9 @@ def add_to_index(sender, document, **kwargs) -> None:
|
||||
from documents import index
|
||||
|
||||
index.add_or_update_document(document)
|
||||
if document.root_document_id is not None and document.root_document is not None:
|
||||
# keep in sync when a new version is consumed.
|
||||
index.add_or_update_document(document.root_document)
|
||||
|
||||
|
||||
def run_workflows_added(
|
||||
|
||||
Reference in New Issue
Block a user