Fix: update document modified time on note creation / deletion (#4374)

* Update document modified on add or delete notes

* Add document extra endpoints info to docs
This commit is contained in:
shamoon
2023-10-14 16:24:13 -07:00
committed by GitHub
parent 01af725d79
commit 99f260225a
3 changed files with 34 additions and 5 deletions

View File

@@ -522,6 +522,9 @@ class DocumentViewSet(
)
c.save()
doc.modified = timezone.now()
doc.save()
from documents import index
index.add_or_update_document(self.get_object())
@@ -545,6 +548,9 @@ class DocumentViewSet(
note = Note.objects.get(id=int(request.GET.get("id")))
note.delete()
doc.modified = timezone.now()
doc.save()
from documents import index
index.add_or_update_document(self.get_object())