Browse Source

mark temporary packs with a last_checked date in the far future

they do not need to be checked for archiving
Brian Gough 10 years ago
parent
commit
0b9a0730c0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      services/track-changes/app/coffee/PackManager.coffee

+ 1 - 0
services/track-changes/app/coffee/PackManager.coffee

@@ -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?