mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
update docHistoryStats after packing ops
This commit is contained in:
parent
19d812734e
commit
27a3511b37
1 changed files with 5 additions and 1 deletions
|
@ -339,7 +339,11 @@ module.exports = PackManager =
|
|||
expected: {expect_nInserted, expect_nRemoved}
|
||||
), result)
|
||||
else
|
||||
callback(err, result)
|
||||
db.docHistoryStats.update {doc_id:packObj.doc_id}, {
|
||||
$inc:{update_count:-expect_nRemoved},
|
||||
$currentDate:{last_packed:true}
|
||||
}, {upsert:true}, () ->
|
||||
callback(err, result)
|
||||
|
||||
deleteExpiredPackOps: (docs, callback) ->
|
||||
now = Date.now()
|
||||
|
|
Loading…
Reference in a new issue