From 8d900013d9e9b326a8dc2928dc9aa2e32ca41e77 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 24 Mar 2016 11:02:58 +0000 Subject: [PATCH] record whether a pack is temporary in the pack itself using the expiresAt field no longer determines if the pack is temporary because archived packs have an expiresAt field added when they are retrieved from s3 --- services/track-changes/app/coffee/PackManager.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/services/track-changes/app/coffee/PackManager.coffee b/services/track-changes/app/coffee/PackManager.coffee index 4d48018190..d16b6857ce 100644 --- a/services/track-changes/app/coffee/PackManager.coffee +++ b/services/track-changes/app/coffee/PackManager.coffee @@ -92,6 +92,7 @@ module.exports = PackManager = end_ts: last.meta.end_ts v: first.v v_end: last.v + temporary: temporary if temporary newPack.expiresAt = new Date(Date.now() + 7 * DAYS) logger.log {project_id, doc_id, newUpdates}, "inserting updates into new pack"