mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
mark temporary packs with a last_checked date in the far future
they do not need to be checked for archiving
This commit is contained in:
@@ -95,6 +95,7 @@ module.exports = PackManager =
|
||||
temporary: temporary
|
||||
if temporary
|
||||
newPack.expiresAt = new Date(Date.now() + 7 * DAYS)
|
||||
newPack.last_checked = new Date(Date.now() + 30 * DAYS) # never check temporary packs
|
||||
logger.log {project_id, doc_id, newUpdates}, "inserting updates into new pack"
|
||||
db.docHistory.save newPack, (err, result) ->
|
||||
return callback(err) if err?
|
||||
|
||||
Reference in New Issue
Block a user