mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
Re-sync space counts when moving docs
Between spaces!
This commit is contained in:
parent
fad1de2e41
commit
5cef58eeba
1 changed files with 3 additions and 0 deletions
|
@ -312,6 +312,9 @@ func (h *Handler) Update(w http.ResponseWriter, r *http.Request) {
|
|||
ctx.Transaction.Commit()
|
||||
|
||||
h.Store.Space.SetStats(ctx, d.SpaceID)
|
||||
if oldDoc.SpaceID != d.SpaceID {
|
||||
h.Store.Space.SetStats(ctx, oldDoc.SpaceID)
|
||||
}
|
||||
h.Store.Audit.Record(ctx, audit.EventTypeDocumentUpdate)
|
||||
|
||||
// Live document indexed for search.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue