@dhyasama/totem-models 6.32.0 → 6.32.2

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
@@ -124,6 +124,9 @@ module.exports = function(mongoose, config) {
124
124
  var query = self.find({
125
125
  'customer': customerId,
126
126
  'organization': orgId
127
+ }).populate({
128
+ path: 'snapshots.documents',
129
+ match: { customer: customerId }
127
130
  });
128
131
 
129
132
  query.exec(cb);
@@ -211,6 +211,7 @@ module.exports = function(mongoose, config) {
211
211
  },
212
212
 
213
213
  financials : {
214
+ active: { type: Boolean, default: false },
214
215
  questions: [{ type: String, trim: true }],
215
216
  metrics: [{ type: String, trim: true }],
216
217
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.32.0",
3
+ "version": "6.32.2",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",