mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
add a metric for append-pack
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user