Explorar o código

remove additional fields

Brian Gough %!s(int64=10) %!d(string=hai) anos
pai
achega
ef47337c78
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/track-changes/app/coffee/PackManager.coffee

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

@@ -294,7 +294,7 @@ module.exports = PackManager =
 				return callback() if not historyPacks?
 				return callback() if not historyPacks?
 				# select only the new packs not already in the index
 				# select only the new packs not already in the index
 				newPacks = (pack for pack in historyPacks when not indexResult?[pack._id]?)
 				newPacks = (pack for pack in historyPacks when not indexResult?[pack._id]?)
-				newPacks = (_.omit(pack, 'doc_id', 'project_id', 'n', 'sz') for pack in newPacks)
+				newPacks = (_.omit(pack, 'doc_id', 'project_id', 'n', 'sz', 'last_checked', 'finalised') for pack in newPacks)
 				if newPacks.length
 				if newPacks.length
 					logger.log {project_id, doc_id, n: newPacks.length}, "found new packs"
 					logger.log {project_id, doc_id, n: newPacks.length}, "found new packs"
 				callback(null, newPacks)
 				callback(null, newPacks)