mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-03 12:34:22 +00:00
exclude already cached packs from archival
This commit is contained in:
parent
28b184e0ca
commit
7350ab531d
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ module.exports = PackManager =
|
|||
callback()
|
||||
|
||||
findCompletedPacks: (project_id, doc_id, callback) ->
|
||||
query = { doc_id: ObjectId(doc_id.toString()) }
|
||||
query = { doc_id: ObjectId(doc_id.toString()), expiresAt: {$exists:false} }
|
||||
db.docHistory.find(query, {pack:false}).sort {v:1}, (err, packs) ->
|
||||
return callback(err) if err?
|
||||
return callback() if not packs?
|
||||
|
|
Loading…
Reference in a new issue