@dhyasama/totem-models 11.20.0 → 11.22.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/Organization.js +3 -4
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -304,8 +304,7 @@ module.exports = function(mongoose, config) {
|
|
|
304
304
|
shared: [{ type: Schema.ObjectId, ref: 'Financials' }],
|
|
305
305
|
|
|
306
306
|
display: {
|
|
307
|
-
timeframe: { type: String, enum: ['All Years', 'Last 12 Months'], default: 'All Years' }
|
|
308
|
-
group: { type: String, enum: ['Financial Statements', 'Template'], default: 'Financial Statements' }
|
|
307
|
+
timeframe: { type: String, enum: ['All Years', 'Last 12 Months'], default: 'All Years' }
|
|
309
308
|
},
|
|
310
309
|
|
|
311
310
|
emails: [{
|
|
@@ -338,7 +337,7 @@ module.exports = function(mongoose, config) {
|
|
|
338
337
|
description: { type: String, trim: true },
|
|
339
338
|
format: { type: String, enum: [null, 'number', 'money', 'percentage', 'variance'] },
|
|
340
339
|
cumulative: { type: Boolean, default: false },
|
|
341
|
-
|
|
340
|
+
inverse: { type: Boolean, default: false },
|
|
342
341
|
}],
|
|
343
342
|
questions: [{
|
|
344
343
|
_id: false,
|
|
@@ -1587,7 +1586,7 @@ module.exports = function(mongoose, config) {
|
|
|
1587
1586
|
if (!id) { return cb(new Error('id is required'), null); }
|
|
1588
1587
|
|
|
1589
1588
|
const query = self.findById(id);
|
|
1590
|
-
query.select('name aliases website websiteAliases');
|
|
1589
|
+
query.select('name aliases website websiteAliases logoUrl');
|
|
1591
1590
|
|
|
1592
1591
|
return query.exec(cb);
|
|
1593
1592
|
|