temporarily disable ttl behaviour

allow existing packs without temporary flag to expire
This commit is contained in:
Brian Gough 2016-03-24 11:38:59 +00:00
parent 3f388fb0ac
commit 98683de3ae

View file

@ -204,7 +204,7 @@ module.exports = PackManager =
return callback(err) if err?
if not pack?
MongoAWS.unArchivePack project_id, doc_id, pack_id, callback
else if pack.expiresAt? and not pack.temporary
else if pack.expiresAt? and not pack.temporary and false # TODO: remove false, temporarily disabled
# we only need to touch the TTL on the listing of changes in the project
# because diffs on individual documents are always done after that
PackManager.increaseTTL pack, callback