@dhyasama/totem-merge 6.9.1 → 6.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/helpers.js CHANGED
@@ -22,6 +22,7 @@ var createSnapshot = module.exports.createSnapshot = function createSnapshot(con
22
22
  var mergeObjects = function mergeObjects(target, source, doNotMergeKeys) {
23
23
 
24
24
  if (source == 'undefined') return;
25
+ else if (source == 'MongooseDocument { undefined }') return;
25
26
 
26
27
  var jsonSource = JSON.parse(JSON.stringify(source));
27
28
 
@@ -251,7 +251,7 @@ var updateDeals = function updateDeals(newOrgId, oldOrgId, cb) {
251
251
 
252
252
  var queue = async.queue(function(task, callback) {
253
253
 
254
- self.Deal.modifyById(task.id, task.update, function(err, result) {
254
+ self.Deal.modifyById(task.id, task.update, { CUSTOMER_ID: customerId }, function(err, result) {
255
255
  if (err) { return callback(err, null); }
256
256
  else if (result) { updated.push(result); }
257
257
  return callback(null, result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-merge",
3
- "version": "6.9.1",
3
+ "version": "6.11.0",
4
4
  "description": "Org and person merging package",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,16 +13,16 @@
13
13
  },
14
14
  "author": "Jason Reynolds",
15
15
  "dependencies": {
16
- "@dhyasama/totem-logger": "^2.0.1",
17
- "@dhyasama/totem-utilities": "^3.0.2",
16
+ "@dhyasama/totem-logger": "^2.1.0",
17
+ "@dhyasama/totem-utilities": "^3.0.5",
18
18
  "async": "^2.6.4",
19
19
  "commander": "^2.20.3",
20
20
  "mongoose": "~4.5.7",
21
21
  "phone-formatter": "0.0.2",
22
- "underscore": "^1.13.4"
22
+ "underscore": "^1.13.6"
23
23
  },
24
24
  "devDependencies": {
25
- "@dhyasama/totem-models": "^9.100.0",
25
+ "@dhyasama/totem-models": "^9.128.1",
26
26
  "mocha": "^5.2.0",
27
27
  "mocha-mongoose": "^1.1.1",
28
28
  "should": "^8.2.2"