@dhyasama/totem-models 7.7.1 → 7.8.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
@@ -90,7 +90,7 @@ module.exports = function(mongoose, config) {
90
90
  }]
91
91
  },
92
92
 
93
- kpis: { type: Schema.Types.Mixed },
93
+ metrics: { type: Schema.Types.Mixed },
94
94
  questions: { type: Schema.Types.Mixed },
95
95
 
96
96
  comment: { type: String, trim: true },
@@ -345,7 +345,7 @@ module.exports = function(mongoose, config) {
345
345
  if (!financials) { return cb(new Error('financials is required'), null); }
346
346
 
347
347
  // Required for mixed types
348
- financials.markModified('kpis');
348
+ financials.markModified('metrics');
349
349
  financials.markModified('questions');
350
350
 
351
351
  financials.save(cb);
@@ -215,7 +215,7 @@ module.exports = function(mongoose, config) {
215
215
 
216
216
  financials : {
217
217
  active: { type: Boolean, default: false },
218
- kpis: [{
218
+ metrics: [{
219
219
  name: { type: String, trim: true },
220
220
  description: { type: String, trim: true },
221
221
  format: { type: String, enum: [null, 'number', 'money', 'percentage', 'variance']},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "7.7.1",
3
+ "version": "7.8.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",