Przeglądaj źródła

temporarily disable ttl behaviour

allow existing packs without temporary flag to expire
Brian Gough 10 lat temu
rodzic
commit
98683de3ae

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

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