@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 +2 -2
- package/lib/Organization.js +1 -1
- package/package.json +1 -1
package/lib/Financials.js
CHANGED
|
@@ -90,7 +90,7 @@ module.exports = function(mongoose, config) {
|
|
|
90
90
|
}]
|
|
91
91
|
},
|
|
92
92
|
|
|
93
|
-
|
|
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('
|
|
348
|
+
financials.markModified('metrics');
|
|
349
349
|
financials.markModified('questions');
|
|
350
350
|
|
|
351
351
|
financials.save(cb);
|
package/lib/Organization.js
CHANGED
|
@@ -215,7 +215,7 @@ module.exports = function(mongoose, config) {
|
|
|
215
215
|
|
|
216
216
|
financials : {
|
|
217
217
|
active: { type: Boolean, default: false },
|
|
218
|
-
|
|
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']},
|