@dhyasama/totem-models 9.109.0 → 9.110.1
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 +1 -1
- package/lib/Round.js +6 -2
- package/package.json +1 -2
package/lib/Organization.js
CHANGED
|
@@ -291,7 +291,7 @@ module.exports = function(mongoose, config) {
|
|
|
291
291
|
active: { type: Boolean, default: false }
|
|
292
292
|
},
|
|
293
293
|
|
|
294
|
-
|
|
294
|
+
display: {
|
|
295
295
|
timeframe: { type: String, enum: ['All Years', 'Last 12 Months'], default: 'All Years' },
|
|
296
296
|
group: { type: String, enum: ['Financial Statements', 'Template'], default: 'Financial Statements' }
|
|
297
297
|
},
|
package/lib/Round.js
CHANGED
|
@@ -670,9 +670,13 @@ module.exports = function(mongoose, config) {
|
|
|
670
670
|
|
|
671
671
|
Round.post('init', function(doc, next) {
|
|
672
672
|
|
|
673
|
-
if (
|
|
673
|
+
if (_.isFunction(next)) {
|
|
674
674
|
|
|
675
|
-
|
|
675
|
+
if (!doc || !doc.vehicles) { return next(); }
|
|
676
|
+
|
|
677
|
+
next();
|
|
678
|
+
|
|
679
|
+
}
|
|
676
680
|
|
|
677
681
|
});
|
|
678
682
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhyasama/totem-models",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.110.1",
|
|
4
4
|
"author": "Jason Reynolds",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "Models for Totem platform",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@dhyasama/totem-utilities": "^3.0.0",
|
|
19
|
-
"algoliasearch": "^4.13.0",
|
|
20
19
|
"async": "^2.6.4",
|
|
21
20
|
"awesome-phonenumber": "^1.0.14",
|
|
22
21
|
"bluebird": "^3.7.2",
|