@dhyasama/totem-models 11.30.1 → 11.31.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/Financials.js CHANGED
@@ -522,6 +522,7 @@ module.exports = function(mongoose, config) {
522
522
  snapshot: '$snapshots',
523
523
  document: '$snapshots.documents',
524
524
  organization: '$organization',
525
+ customer: '$customer'
525
526
  }
526
527
  }
527
528
  ]).exec(function(err, result) {
@@ -134,11 +134,11 @@ module.exports = function(mongoose, config) {
134
134
 
135
135
  };
136
136
 
137
- FinancialsAnalysis.statics.upsert = function upsert({}, cb) {
137
+ FinancialsAnalysis.statics.upsert = function upsert(doc, cb) {
138
138
 
139
- if (!financials) { return cb(new Error('financials is required'), null); }
139
+ if (!doc) { return cb(new Error('doc is required'), null); }
140
140
 
141
- financials.save(cb);
141
+ doc.save(cb);
142
142
 
143
143
  };
144
144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "11.30.1",
3
+ "version": "11.31.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",