Sfoglia il codice sorgente

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
Brian Gough 10 anni fa
parent
commit
8d900013d9
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      services/track-changes/app/coffee/PackManager.coffee

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

@@ -92,6 +92,7 @@ module.exports = PackManager =
 				end_ts: last.meta.end_ts
 				end_ts: last.meta.end_ts
 			v: first.v
 			v: first.v
 			v_end: last.v
 			v_end: last.v
+			temporary: temporary
 		if temporary
 		if temporary
 			newPack.expiresAt = new Date(Date.now() + 7 * DAYS)
 			newPack.expiresAt = new Date(Date.now() + 7 * DAYS)
 		logger.log {project_id, doc_id, newUpdates}, "inserting updates into new pack"
 		logger.log {project_id, doc_id, newUpdates}, "inserting updates into new pack"