mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 22:53:31 -05:00
add a metric for append-pack
This commit is contained in:
parent
25365789b4
commit
76fe194815
1 changed files with 1 additions and 0 deletions
|
@ -143,6 +143,7 @@ module.exports = PackManager =
|
|||
if lastUpdate.expiresAt and temporary
|
||||
update.$set.expiresAt = new Date(Date.now() + 7 * DAYS)
|
||||
logger.log {project_id, doc_id, lastUpdate, newUpdates}, "appending updates to existing pack"
|
||||
Metrics.inc("append-pack-" + if temporary then "temporary" else "permanent")
|
||||
db.docHistory.findAndModify {query, update, new:true, fields:{meta:1,v_end:1}}, callback
|
||||
|
||||
# Retrieve all changes for a document
|
||||
|
|
Loading…
Reference in a new issue