mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-12 02:44:07 +00:00
include the current date in the updates to docHistoryStats
This commit is contained in:
parent
bbbe2077f0
commit
66bca8d05c
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,10 @@ module.exports = MongoManager =
|
|||
async.series jobs, (err, results) ->
|
||||
if not temporary
|
||||
# keep track of updates to be packed
|
||||
db.docHistoryStats.update {doc_id:ObjectId(doc_id)}, {$inc:{updates:updates.length}}, {upsert:true}, () ->
|
||||
db.docHistoryStats.update {doc_id:ObjectId(doc_id)}, {
|
||||
$inc:{update_count:updates.length},
|
||||
$currentDate:{last_update:true}
|
||||
}, {upsert:true}, () ->
|
||||
callback(err,results)
|
||||
else
|
||||
callback(err,results)
|
||||
|
|
Loading…
Add table
Reference in a new issue