From c6be12f3d5432c200fa955455c52a36600beae39 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 11 Jan 2016 12:42:22 +0000 Subject: [PATCH] set v_end on pack creation --- 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 210139d468..17dae0cba7 100644 --- a/services/track-changes/app/coffee/PackManager.coffee +++ b/services/track-changes/app/coffee/PackManager.coffee @@ -300,6 +300,7 @@ module.exports = PackManager = top.pack = [ {v: d.v, meta: d.meta, op: d.op, _id: d._id} ] top.meta = { start_ts: d.meta.start_ts, end_ts: d.meta.end_ts } top.sz = sz + top.v_end = d.v delete top.op delete top._id packs.push top