Преглед изворни кода

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 година
родитељ
комит
8d900013d9
1 измењених фајлова са 1 додато и 0 уклоњено
  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
 			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"