@dhyasama/totem-models 8.10.0 → 8.12.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/index.js CHANGED
@@ -10,13 +10,6 @@ var bootstrap = function(mongoose, config) {
10
10
  // use bluebird promises globally within mongoose
11
11
  mongoose.Promise = require('bluebird');
12
12
 
13
- // Validate config
14
- var configHas_LPS_ENABLED = typeof config['LPS_ENABLED'] != 'undefined';
15
- if (!configHas_LPS_ENABLED) throw new Error('Config is missing LPS_ENABLED setting');
16
-
17
- var configHas_CUSTOMER_ID = typeof config['CUSTOMER_ID'] != 'undefined';
18
- if (!configHas_CUSTOMER_ID) throw new Error('Config is missing CUSTOMER_ID setting');
19
-
20
13
  // todo - find a solution to load without worrying about order
21
14
 
22
15
  // deal must be loaded before organization
package/lib/Financials.js CHANGED
@@ -219,7 +219,7 @@ module.exports = function(mongoose, config) {
219
219
  });
220
220
 
221
221
  query.populate('organization', 'name logoUrl');
222
- query.populate('customer', 'name logoUrl ');
222
+ query.populate('customer', 'name logoUrl customer.style');
223
223
  query.populate({
224
224
  path: 'snapshots.documents',
225
225
  match: { customer: customerId }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.10.0",
3
+ "version": "8.12.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",