]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
FIx note deletion (#4602)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 16 Nov 2023 04:25:17 +0000 (20:25 -0800)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2023 04:25:17 +0000 (20:25 -0800)
src/documents/views.py

index 00d16022f4b968edba38db6921508676a355ad05..386f874044199e2c976f59a3665d9fbe23aa84ff 100644 (file)
@@ -583,7 +583,7 @@ class DocumentViewSet(
 
             from documents import index
 
-            index.add_or_update_document(self.get_object())
+            index.add_or_update_document(doc)
 
             return Response(self.getNotes(doc))